org.encog.ml.data.specific
public class BiPolarNeuralData extends Object implements MLData, Serializable
Constructor and Description |
---|
BiPolarNeuralData(boolean[] d)
Construct this object with the specified data.
|
BiPolarNeuralData(int size)
Construct a data object with the specified size.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
double value)
This will throw an error, as "add" is not supported for bipolar.
|
void |
clear()
Set all data to false.
|
MLData |
clone()
Clone this object.
|
Centroid<MLData> |
createCentroid()
Not supported.
|
boolean |
getBoolean(int i)
Get the specified data item as a boolean.
|
double[] |
getData()
Get the data held by this object as an array of doubles.
|
double |
getData(int index)
Get the data held by the index.
|
void |
setData(double[] theData)
Store the array.
|
void |
setData(int index,
boolean value)
Set the specified index of this object as a boolean.
|
void |
setData(int index,
double d)
Set the specified index of this object as a double.
|
int |
size()
Get the size of this data object.
|
String |
toString() |
public BiPolarNeuralData(boolean[] d)
d
- The data to create this object with.public BiPolarNeuralData(int size)
size
- The size of this data object.public void add(int index, double value)
public boolean getBoolean(int i)
i
- The index to read.public double[] getData()
public double getData(int index)
public void setData(double[] theData)
public void setData(int index, boolean value)
index
- The index to set.value
- The value to set.public void setData(int index, double d)
public int size()
public Centroid<MLData> createCentroid()
createCentroid
in interface CentroidFactory<MLData>
Copyright © 2014. All Rights Reserved.