public class CompressedDoubleMatrix
protected DistanceMatrix kinshipMatrix
protected TreeClusters theClusters
protected int numberOfGroups
protected DoubleMatrix adjustmentMatrix
protected DoubleMatrix compressedMatrix
protected kotlin.Array[] distance2clusterIndex
protected kotlin.Array[] groupMembers
public CompressedDoubleMatrix(DistanceMatrix kinship, Tree theTree)
protected void init()
public int getNumberOfGroups()
public void setNumberOfGroups(int numberOfGroups)
This sets the number of groups and calculates the output matrices. It must be run to set the number of groups before retrieving the compressed and adjustment matrices.
numberOfGroups - the number of groups into which the taxa should be compressedpublic DoubleMatrix getCompressedMatrix(net.maizegenetics.analysis.association.CompressedDoubleMatrix.kinshipMethod km)
km - the kinship method used to calculate the group kinshipspublic DoubleMatrix getAdjustmentMatrix()
public DoubleMatrix getCompressedZKZ(DoubleMatrix Z, net.maizegenetics.analysis.association.CompressedDoubleMatrix.kinshipMethod km)
public DoubleMatrix getCompressedZ(DoubleMatrix originalZ)