|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.pcl.absurdist.common.CorrespondenceVector
An instance of this class can be used to store a correspondence matrix between the two systems, or any other object of the same dimension
| Field Summary | |
double[][] |
d
|
int |
m
|
int |
n
|
| Constructor Summary | |
CorrespondenceVector(double[][] arr)
Creates a CorrepspondenceVector structure "wrapped around" an existing data array. |
|
CorrespondenceVector(int n,
int m)
Creates a CorrepspondenceVector structure of the specified sizes |
|
| Method Summary | |
double |
allSum()
|
java.lang.Object |
clone()
Prepares a copy of this matrix |
double[] |
colSum()
Lazy evaluation for f(b)=C(All,b)=sum_a{C(a,b)} |
void |
daxpy(double alpha,
CorrespondenceVector v)
this += alpha * v |
double |
dp(CorrespondenceVector v)
Dot product |
void |
flush()
Flushes the "cached" values of row and column sums. |
double[][] |
getMatrix()
|
double[] |
rowSum()
Lazy evaluation for f(a)=C(a,All)=sum_b{C(a,b)} |
double |
sum_1_far(int a,
int x,
int[] neiPlusX)
|
double |
sum_far_1(int a,
int x,
int[] neiPlusA)
|
double |
sum_far_far(int a,
int x,
int[] neiPlusA,
int[] neiPlusX)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public double[][] d
public final int n
public final int m
| Constructor Detail |
public CorrespondenceVector(int n,
int m)
public CorrespondenceVector(double[][] arr)
arr - a properly allocated rectangualr array.| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic void flush()
public double[][] getMatrix()
public double[] rowSum()
public double[] colSum()
public double allSum()
public double sum_1_far(int a,
int x,
int[] neiPlusX)
public double sum_far_1(int a,
int x,
int[] neiPlusA)
public double sum_far_far(int a,
int x,
int[] neiPlusA,
int[] neiPlusX)
public double dp(CorrespondenceVector v)
public void daxpy(double alpha,
CorrespondenceVector v)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||