|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.layers.MappedInputs
public class MappedInputs
Wrapper class for input data mapped onto units. This class holds the names and distances of input data, both sorted by ascending distance.
Field Summary | |
---|---|
private java.util.Vector<java.lang.Double> |
inputDistances
|
private java.util.Vector<java.lang.String> |
inputNames
|
private int |
number
|
Constructor Summary | |
---|---|
MappedInputs()
Default Constructor. |
Method Summary | |
---|---|
void |
addMappedInput(java.lang.String name,
java.lang.Double dist)
Adds an input datum defined by argument name and distance to the list. |
void |
clearMappedInputs()
Clears all input data. |
double[] |
getMappedInputDistances()
Returns an array of distances between this unit's weight vector and the vectors of the mapped input data. |
java.lang.String[] |
getMappedInputNames()
Returns an array of strings containing the identifiers of the mapped input data. |
int |
getNumberOfMappedInputs()
Returns the number of mapped input data. |
boolean |
isMapped(java.lang.String name)
Checks if an input datum with identifier name is contained. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector<java.lang.Double> inputDistances
private java.util.Vector<java.lang.String> inputNames
private int number
Constructor Detail |
---|
public MappedInputs()
Method Detail |
---|
public void addMappedInput(java.lang.String name, java.lang.Double dist)
name
and distance
to the list. It is inserted
at a position to retain ordering by ascending distance.
name
- the identification string of the input datum.dist
- the distance between a unit's weight vector and the inptu datum. This value is precalcuated and
independent from this class.public void clearMappedInputs()
number
variable
to 0 accordingly.
public double[] getMappedInputDistances()
public java.lang.String[] getMappedInputNames()
getMappedInputDistances()
.
public int getNumberOfMappedInputs()
public boolean isMapped(java.lang.String name)
name
is contained.
name
- the name of the input datum to be checked.
true
if an input datum with identifier specified by argument name
is mapped
onto this unit, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |