102 lines
2.7 KiB
Java
102 lines
2.7 KiB
Java
package o;
|
|
|
|
import com.google.zxing.NotFoundException;
|
|
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class AYU extends xue {
|
|
private final int[] b = new int[4];
|
|
private final int[] c = new int[8];
|
|
private final float[] h = new float[4];
|
|
private final float[] a = new float[4];
|
|
private final int[] e = new int[4];
|
|
private final int[] d = new int[4];
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public static int c(int[] iArr, int[][] iArr2) throws NotFoundException {
|
|
for (int i = 0; i < iArr2.length; i++) {
|
|
if (b(iArr, iArr2[i], 0.45f) < 0.2f) {
|
|
return i;
|
|
}
|
|
}
|
|
throw NotFoundException.b();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public static void d(int[] iArr, float[] fArr) {
|
|
int i = 0;
|
|
float f = fArr[0];
|
|
for (int i2 = 1; i2 < iArr.length; i2++) {
|
|
float f2 = fArr[i2];
|
|
if (f2 > f) {
|
|
i = i2;
|
|
f = f2;
|
|
}
|
|
}
|
|
iArr[i] = iArr[i] + 1;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public static void c(int[] iArr, float[] fArr) {
|
|
int i = 0;
|
|
float f = fArr[0];
|
|
for (int i2 = 1; i2 < iArr.length; i2++) {
|
|
float f2 = fArr[i2];
|
|
if (f2 < f) {
|
|
i = i2;
|
|
f = f2;
|
|
}
|
|
}
|
|
iArr[i] = iArr[i] - 1;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public static boolean b(int[] iArr) {
|
|
float f = (iArr[0] + iArr[1]) / ((iArr[2] + r1) + iArr[3]);
|
|
if (f < 0.7916667f || f > 0.89285713f) {
|
|
return false;
|
|
}
|
|
int i = Integer.MAX_VALUE;
|
|
int i2 = PKIFailureInfo.systemUnavail;
|
|
for (int i3 : iArr) {
|
|
if (i3 > i2) {
|
|
i2 = i3;
|
|
}
|
|
if (i3 < i) {
|
|
i = i3;
|
|
}
|
|
}
|
|
return i2 < i * 10;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final float[] i() {
|
|
return this.h;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final int[] h() {
|
|
return this.e;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final float[] a() {
|
|
return this.a;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final int[] e() {
|
|
return this.d;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final int[] d() {
|
|
return this.b;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final int[] b() {
|
|
return this.c;
|
|
}
|
|
}
|