org.encog.ml.data.basic
public class BasicMLComplexData extends Object implements MLComplexData
| Constructor and Description |
|---|
BasicMLComplexData(ComplexNumber[] d)
Construct this object with the specified data.
|
BasicMLComplexData(double[] d)
Construct this object with the specified data.
|
BasicMLComplexData(int size)
Construct this object with blank data and a specified size.
|
BasicMLComplexData(MLData d)
Construct a new BasicMLData object from an existing one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
ComplexNumber value)
Add a complex number to the specified index.
|
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.
|
Centroid<MLData> |
createCentroid()
Not supported.
|
ComplexNumber[] |
getComplexData() |
ComplexNumber |
getComplexData(int index)
Get the complex data at the specified index.
|
double[] |
getData() |
double |
getData(int index)
Get the element specified index value.
|
void |
setData(ComplexNumber[] theData) |
void |
setData(double[] theData)
Set all of the data as an array of doubles.
|
void |
setData(int index,
ComplexNumber d)
Set a data element to a complex number.
|
void |
setData(int index,
double d)
Set the data at the specified index.
|
int |
size() |
String |
toString() |
public BasicMLComplexData(double[] d)
d - The data to construct this object with.public BasicMLComplexData(ComplexNumber[] d)
d - The data to construct this object with.public BasicMLComplexData(int size)
size - The amount of data to store.public BasicMLComplexData(MLData d)
d - The object to be copied.public void add(int index,
double value)
public void add(int index,
ComplexNumber value)
add in interface MLComplexDataindex - The index to use.value - The complex number value to add.public MLData clone()
public double[] getData()
public ComplexNumber[] getComplexData()
getComplexData in interface MLComplexDatapublic double getData(int index)
public ComplexNumber getComplexData(int index)
getComplexData in interface MLComplexDataindex - The index to get the complex data at.public void setData(double[] theData)
public void setData(ComplexNumber[] theData)
setData in interface MLComplexDatatheData - Set the complex data array.public void setData(int index,
double d)
public void setData(int index,
ComplexNumber d)
setData in interface MLComplexDataindex - The index to set.d - The complex number.public int size()
public Centroid<MLData> createCentroid()
createCentroid in interface CentroidFactory<MLData>Copyright © 2014. All Rights Reserved.