org.dbe.eve.opt.setcover
Class ZeroOneMatrix

java.lang.Object
  extended by org.dbe.eve.opt.setcover.ZeroOneMatrix

public class ZeroOneMatrix
extends java.lang.Object


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  double[] weight
           
 
Constructor Summary
ZeroOneMatrix()
           
 
Method Summary
 int[] getDimensions()
           
 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 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
Constructor Detail

ZeroOneMatrix

public ZeroOneMatrix()
Method Detail

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