|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.common.Feature
Field Summary | |
protected double[] |
activations
activation of each value in feature. |
protected boolean |
flag
used for WM item. |
protected Global |
global
gloabl settings. |
protected java.lang.String |
label
the label of the feature. |
protected short |
length
the length of this feature. |
protected short |
order
order in the whole feature list. |
protected short |
type
the type of the feature. |
protected short[] |
values
the active values this feature has. |
Constructor Summary | |
Feature(java.lang.String label,
int length,
int value)
constructor used for WM flags. |
|
Feature(java.lang.String label,
short type,
short order,
double[] actVals,
Global g)
constructor. |
|
Feature(java.lang.String label,
short type,
short order,
short[] con,
Global g)
constructor. |
|
Feature(java.lang.String label,
short type,
short order,
short length,
short[] vals,
Global g)
constructor. |
Method Summary | |
java.lang.Object |
clone()
methods from class Object |
boolean |
equals(java.lang.Object other)
methods from class Object |
double[] |
getActivations()
returns the activations. |
void |
getActivations(double[] vals)
returns the activations. |
short[] |
getContent()
returns the content in terms of an array where each element indicates the corresponding dimensional value is active or not. |
void |
getContent(short[] content)
return the content in terms of an array where each element indicates the corresponding dimensional value is active or not. |
java.lang.String |
getLabel()
returns the feature label. |
int |
getLength()
returns the feature length. |
int |
getOrder()
returns the feature order. |
int |
getType()
returns the feature type. |
int |
getValueNum()
returns the number of active values. |
short[] |
getValues()
returns active values. |
void |
getValues(short[] vals)
returns the active values. |
int |
hashCode()
methods from class Object |
boolean |
isContained(Feature other)
returns if this feature is contained in other feature. |
boolean |
isTheSameFeature(Feature other)
Compares two features is the same or not. |
void |
setValues(short[] arr)
returns the activations. |
java.lang.String |
toString()
methods from class Object |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Global global
protected java.lang.String label
protected short type
protected short order
protected short length
protected short[] values
protected double[] activations
protected boolean flag
Constructor Detail |
public Feature(java.lang.String label, int length, int value)
public Feature(java.lang.String label, short type, short order, short[] con, Global g)
label
- the feature label.type
- the feature type.order
- the order in the chunk this feature is in.con
- the content of the feature in terms of an array where each
element indicates a dimensional value is active or not.public Feature(java.lang.String label, short type, short order, double[] actVals, Global g)
label
- the feature label.type
- the feature type.order
- the order in the chunk this feature is in.actVals
- the content of the feature in terms of an array of activations
each value in the dimension has.public Feature(java.lang.String label, short type, short order, short length, short[] vals, Global g)
label
- the feature label.type
- the feature type.order
- the order in the chunk this feature is in.length
- the length of the dimension.vals
- the content of the feature in terms of an array of active
values this feature has.Method Detail |
public boolean isTheSameFeature(Feature other)
public java.lang.String getLabel()
public int getType()
public int getOrder()
public int getLength()
public int getValueNum()
public short[] getValues()
public void getValues(short[] vals)
vals
- the array to store the active values.public short[] getContent()
public void getContent(short[] content)
content
- the array to store the content of this feature.public double[] getActivations()
public void getActivations(double[] vals)
public void setValues(short[] arr)
public boolean isContained(Feature other)
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object other)
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |