2021-06-27 20:44:35 +00:00
|
|
|
package co.discord.media_engine;
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
import a0.a.a.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
/* compiled from: Statistics.kt */
|
|
|
|
public final class PlayoutMetric {
|
2021-07-13 20:23:20 +00:00
|
|
|
private final double last;
|
|
|
|
private final double max;
|
|
|
|
private final double mean;
|
|
|
|
private final double p75;
|
|
|
|
private final double p95;
|
|
|
|
private final double p99;
|
|
|
|
|
|
|
|
public PlayoutMetric(double d, double d2, double d3, double d4, double d5, double d6) {
|
|
|
|
this.last = d;
|
|
|
|
this.mean = d2;
|
|
|
|
this.p75 = d3;
|
|
|
|
this.p95 = d4;
|
|
|
|
this.p99 = d5;
|
|
|
|
this.max = d6;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ PlayoutMetric copy$default(PlayoutMetric playoutMetric, double d, double d2, double d3, double d4, double d5, double d6, int i, Object obj) {
|
|
|
|
return playoutMetric.copy((i & 1) != 0 ? playoutMetric.last : d, (i & 2) != 0 ? playoutMetric.mean : d2, (i & 4) != 0 ? playoutMetric.p75 : d3, (i & 8) != 0 ? playoutMetric.p95 : d4, (i & 16) != 0 ? playoutMetric.p99 : d5, (i & 32) != 0 ? playoutMetric.max : d6);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double component1() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.last;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double component2() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.mean;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double component3() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.p75;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double component4() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.p95;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double component5() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.p99;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double component6() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.max;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final PlayoutMetric copy(double d, double d2, double d3, double d4, double d5, double d6) {
|
|
|
|
return new PlayoutMetric(d, d2, d3, d4, d5, d6);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof PlayoutMetric)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
PlayoutMetric playoutMetric = (PlayoutMetric) obj;
|
2021-07-13 20:23:20 +00:00
|
|
|
return Double.compare(this.last, playoutMetric.last) == 0 && Double.compare(this.mean, playoutMetric.mean) == 0 && Double.compare(this.p75, playoutMetric.p75) == 0 && Double.compare(this.p95, playoutMetric.p95) == 0 && Double.compare(this.p99, playoutMetric.p99) == 0 && Double.compare(this.max, playoutMetric.max) == 0;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double getLast() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.last;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double getMax() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.max;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double getMean() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.mean;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double getP75() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.p75;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double getP95() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.p95;
|
|
|
|
}
|
|
|
|
|
2021-07-13 20:23:20 +00:00
|
|
|
public final double getP99() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return this.p99;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
2021-07-13 20:23:20 +00:00
|
|
|
int a = a.a(this.mean);
|
|
|
|
int a2 = a.a(this.p75);
|
|
|
|
int a3 = a.a(this.p95);
|
|
|
|
int a4 = a.a(this.p99);
|
|
|
|
return a.a(this.max) + ((a4 + ((a3 + ((a2 + ((a + (a.a(this.last) * 31)) * 31)) * 31)) * 31)) * 31);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2021-07-13 20:23:20 +00:00
|
|
|
StringBuilder L = c.d.b.a.a.L("PlayoutMetric(last=");
|
2021-06-27 20:44:35 +00:00
|
|
|
L.append(this.last);
|
|
|
|
L.append(", mean=");
|
|
|
|
L.append(this.mean);
|
|
|
|
L.append(", p75=");
|
|
|
|
L.append(this.p75);
|
|
|
|
L.append(", p95=");
|
|
|
|
L.append(this.p95);
|
|
|
|
L.append(", p99=");
|
|
|
|
L.append(this.p99);
|
|
|
|
L.append(", max=");
|
|
|
|
L.append(this.max);
|
|
|
|
L.append(")");
|
|
|
|
return L.toString();
|
|
|
|
}
|
|
|
|
}
|