org.dbe.eve.opt.setcover
Class ZeroOneMatrix
java.lang.Object
org.dbe.eve.opt.setcover.ZeroOneMatrix
public class ZeroOneMatrix
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matrix
private boolean[][] matrix
dimensions
private int[] dimensions
sparse
private boolean sparse
rowMap
private int[] rowMap
columnMap
private int[] columnMap
reducedServ
private boolean[] reducedServ
weight
private double[] weight
totalWeight
private double totalWeight
random
private java.util.Random random
ZeroOneMatrix
public ZeroOneMatrix()
readFile
public void readFile(java.lang.String fileinput)
printAll
public void printAll()
printAllFile
public void printAllFile(java.lang.String fileoutput)
invertMatrix
public void invertMatrix()
reduce
public void reduce(RequestVector request)
getServicePheno
public boolean[] getServicePheno(int column)
getPheno
public boolean[] getPheno(boolean[] genotype)
isSparse
public boolean isSparse()
getDimensions
public int[] getDimensions()
getWeights
public double[] getWeights()
setWeights
public void setWeights(double[] w)
setRandomWeights
public void setRandomWeights()
setTotalWeight
public void setTotalWeight()
getTotalWeight
public double getTotalWeight()
printMapping
public void printMapping()