org.encog.ml.data
public interface MLData extends Cloneable, CentroidFactory<MLData>
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
double value)
Add a value to the specified index.
|
void |
clear()
Clear any data to zero.
|
MLData |
clone()
Clone this object.
|
double[] |
getData() |
double |
getData(int index)
Get the element specified index value.
|
void |
setData(double[] data)
Set all of the data as an array of doubles.
|
void |
setData(int index,
double d)
Set the specified element.
|
int |
size() |
createCentroid
void add(int index, double value)
index
- The index to add to.value
- The value to add.void clear()
MLData clone()
double[] getData()
double getData(int index)
index
- The index to read.void setData(double[] data)
data
- An array of doubles.void setData(int index, double d)
index
- The index to set.d
- The data for the specified element.int size()
Copyright © 2014. All Rights Reserved.