org.dbe.eve.simulator
Class ZeroOneMatrix
java.lang.Object
org.dbe.eve.simulator.ZeroOneMatrix
public class ZeroOneMatrix
- extends java.lang.Object
- Author:
- mokada
A matrix object that UMDA uses
| 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
useWeightedFeatures
private boolean useWeightedFeatures
ZeroOneMatrix
public ZeroOneMatrix()
createManually
public void createManually(boolean[][] _matrix)
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)
setUnicostWeights
public void setUnicostWeights()
setRandomWeights
public void setRandomWeights()
setTotalWeight
public void setTotalWeight()
getTotalWeight
public double getTotalWeight()
getMatrix
public boolean[][] getMatrix()
printMapping
public void printMapping()