package q0;

/* JADX INFO: renamed from: q0.s, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2827s {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final double f23569a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final double f23570b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final double f23571c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final double f23572d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final double f23573e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final double f23574f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final double f23575g;

    public C2827s(double d6, double d7, double d8, double d9, double d10, double d11, double d12) {
        this.f23569a = d6;
        this.f23570b = d7;
        this.f23571c = d8;
        this.f23572d = d9;
        this.f23573e = d10;
        this.f23574f = d11;
        this.f23575g = d12;
        if (Double.isNaN(d7) || Double.isNaN(d8) || Double.isNaN(d9) || Double.isNaN(d10) || Double.isNaN(d11) || Double.isNaN(d12) || Double.isNaN(d6)) {
            throw new IllegalArgumentException("Parameters cannot be NaN");
        }
        if (d6 == -2.0d || d6 == -3.0d) {
            return;
        }
        if (d10 < 0.0d || d10 > 1.0d) {
            throw new IllegalArgumentException("Parameter d must be in the range [0..1], was " + d10);
        }
        if (d10 == 0.0d && (d7 == 0.0d || d6 == 0.0d)) {
            throw new IllegalArgumentException("Parameter a or g is zero, the transfer function is constant");
        }
        if (d10 >= 1.0d && d9 == 0.0d) {
            throw new IllegalArgumentException("Parameter c is zero, the transfer function is constant");
        }
        if ((d7 == 0.0d || d6 == 0.0d) && d9 == 0.0d) {
            throw new IllegalArgumentException("Parameter a or g is zero, and c is zero, the transfer function is constant");
        }
        if (d9 < 0.0d) {
            throw new IllegalArgumentException("The transfer function must be increasing");
        }
        if (d7 < 0.0d || d6 < 0.0d) {
            throw new IllegalArgumentException("The transfer function must be positive or increasing");
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C2827s)) {
            return false;
        }
        C2827s c2827s = (C2827s) obj;
        return Double.compare(this.f23569a, c2827s.f23569a) == 0 && Double.compare(this.f23570b, c2827s.f23570b) == 0 && Double.compare(this.f23571c, c2827s.f23571c) == 0 && Double.compare(this.f23572d, c2827s.f23572d) == 0 && Double.compare(this.f23573e, c2827s.f23573e) == 0 && Double.compare(this.f23574f, c2827s.f23574f) == 0 && Double.compare(this.f23575g, c2827s.f23575g) == 0;
    }

    public final int hashCode() {
        return Double.hashCode(this.f23575g) + ((Double.hashCode(this.f23574f) + ((Double.hashCode(this.f23573e) + ((Double.hashCode(this.f23572d) + ((Double.hashCode(this.f23571c) + ((Double.hashCode(this.f23570b) + (Double.hashCode(this.f23569a) * 31)) * 31)) * 31)) * 31)) * 31)) * 31);
    }

    public final String toString() {
        return "TransferParameters(gamma=" + this.f23569a + ", a=" + this.f23570b + ", b=" + this.f23571c + ", c=" + this.f23572d + ", d=" + this.f23573e + ", e=" + this.f23574f + ", f=" + this.f23575g + ')';
    }

    public /* synthetic */ C2827s(double d6, double d7, double d8, double d9, double d10) {
        this(d6, d7, d8, d9, d10, 0.0d, 0.0d);
    }
}
