public class oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint extends java.lang.Object implements oadd.org.apache.commons.math.stat.clustering.Clusterable, java.io.Serializable
{
private static final long serialVersionUID;
private final int[] point;
public void <init>(int[])
{
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v;
int[] v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v := @parameter: int[];
specialinvoke v.<java.lang.Object: void <init>()>();
v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point> = v;
return;
}
public int[] getPoint()
{
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v;
int[] v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v = v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point>;
return v;
}
public double distanceFrom(oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint)
{
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v, v;
int[] v, v;
double v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v := @parameter: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v = v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point>;
v = virtualinvoke v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] getPoint()>();
v = staticinvoke <oadd.org.apache.commons.math.util.MathArrays: double distance(int[],int[])>(v, v);
return v;
}
public oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint centroidOf(java.util.Collection)
{
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v, v;
int[] v, v, v;
int v, v, v, v, v, v, v, v, v, v, v;
boolean v;
java.util.Iterator v;
java.util.Collection v;
java.lang.Object v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v := @parameter: java.util.Collection;
v = virtualinvoke v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] getPoint()>();
v = lengthof v;
v = newarray (int)[v];
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = v[v];
v = virtualinvoke v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] getPoint()>();
v = v[v];
v = v + v;
v[v] = v;
v = v + 1;
goto label;
label:
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = v[v];
v = interfaceinvoke v.<java.util.Collection: int size()>();
v = v / v;
v[v] = v;
v = v + 1;
goto label;
label:
v = new oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
specialinvoke v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: void <init>(int[])>(v);
return v;
}
public boolean equals(java.lang.Object)
{
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v;
int[] v, v;
java.lang.Object v;
boolean v, v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v := @parameter: java.lang.Object;
v = v instanceof oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
if v != 0 goto label;
return 0;
label:
v = v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point>;
v = v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point>;
v = staticinvoke <java.util.Arrays: boolean equals(int[],int[])>(v, v);
return v;
}
public int hashCode()
{
int v;
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v;
int[] v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v = v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point>;
v = staticinvoke <java.util.Arrays: int hashCode(int[])>(v);
return v;
}
public java.lang.String toString()
{
java.lang.String v;
oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint v;
int[] v;
v := @this: oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint;
v = v.<oadd.org.apache.commons.math.stat.clustering.EuclideanIntegerPoint: int[] point>;
v = staticinvoke <java.util.Arrays: java.lang.String toString(int[])>(v);
return v;
}
}