public class DataExample extends Object
| Constructor and Description |
|---|
DataExample(double[] input)
Creates an unsupervised data example with specified input vector.
|
DataExample(double[] input,
double[] target)
Creates a supervised data example with specified input and target vector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Two data examples are equal if and only if input and target vectors
are equal.
|
double[] |
getInput()
Returns a reference to the input vector.
|
int |
getInputSize()
Returns the size of the input vector.
|
double[] |
getTarget()
Returns a reference to the target output vector.
|
int |
getTargetSize()
Returns the size of the target output vector.
|
int |
hashCode() |
boolean |
isSupervised()
Returns
true if this data example is supervised. |
public DataExample(double[] input)
input
array, don't alter the data example.input - the input vector. Cannot be null.public DataExample(double[] input,
double[] target)
input
and target arrays, don't alter the data example.input - the input vector. Cannot be null.target - the target vector. Cannot be null.public final double[] getInput()
public final double[] getTarget()
public final int getInputSize()
public final int getTargetSize()
zero - for unsupervised examples public final boolean isSupervised()
true if this data example is supervised. Otherwise it
returns false.true if this data example is supervisedpublic final boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.