org.dbe.eve.simulator
Class ZeroOneMatrix

java.lang.Object
  extended by org.dbe.eve.simulator.ZeroOneMatrix

public class ZeroOneMatrix
extends java.lang.Object

Author:
mokada A matrix object that UMDA uses

Field Summary
private  int[] columnMap
           
private  int[] dimensions
           
private  boolean[][] matrix
           
private  java.util.Random random
           
private  boolean[] reducedServ
           
private  int[] rowMap
           
private  boolean sparse
           
private  double totalWeight
           
private  boolean useWeightedFeatures
           
private  double[] weight
           
 
Constructor Summary
ZeroOneMatrix()
           
 
Method Summary
 void createManually(boolean[][] _matrix)
           
 int[] getDimensions()
           
 boolean[][] getMatrix()
           
 boolean[] getPheno(boolean[] genotype)
           
 boolean[] getServicePheno(int column)
           
 double getTotalWeight()
           
 double[] getWeights()
           
 void invertMatrix()
           
 boolean isSparse()
           
 void printAll()
           
 void printAllFile(java.lang.String fileoutput)
           
 void printMapping()
           
 void readFile(java.lang.String fileinput)
           
 void reduce(RequestVector request)
           
 void setRandomWeights()
           
 void setTotalWeight()
           
 void setUnicostWeights()
           
 void setWeights(double[] w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ZeroOneMatrix

public ZeroOneMatrix()
Method Detail

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()