net.sourceforge.cilib.problem.dataset
Class MatrixDataSetBuilder

java.lang.Object
  extended by net.sourceforge.cilib.problem.dataset.DataSetBuilder
      extended by net.sourceforge.cilib.problem.dataset.BinaryDataSetBuilder
          extended by net.sourceforge.cilib.problem.dataset.MatrixDataSetBuilder
All Implemented Interfaces:
Serializable, Iterable<DataSet>, Cloneable

public class MatrixDataSetBuilder
extends BinaryDataSetBuilder

TODO: This needs to implement the reading of a matrix as needed by MappingProblem.

Author:
Gary Pampara
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.problem.dataset.DataSetBuilder
dataSets
 
Constructor Summary
MatrixDataSetBuilder()
           
MatrixDataSetBuilder(MatrixDataSetBuilder rhs)
           
 
Method Summary
 MatrixDataSetBuilder getClone()
          Create a cloned copy of the current object and return it.
 int getD()
           
 int getM()
           
 Matrix<Double> getMatrix()
          Get the constructed Matrix.
 void initialise()
           
 
Methods inherited from class net.sourceforge.cilib.problem.dataset.DataSetBuilder
addDataSet, getDataSet, iterator, uninitialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixDataSetBuilder

public MatrixDataSetBuilder()

MatrixDataSetBuilder

public MatrixDataSetBuilder(MatrixDataSetBuilder rhs)
Method Detail

getClone

public MatrixDataSetBuilder getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class DataSetBuilder
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

initialise

public void initialise()
Specified by:
initialise in class BinaryDataSetBuilder

getMatrix

public Matrix<Double> getMatrix()
Get the constructed Matrix.

Returns:
The current Matrix instance.

getD

public int getD()
Returns:
The value of d.

getM

public int getM()
Returns:
The current value of m.


Copyright © 2009 CIRG. All Rights Reserved.