|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.acs.VCGSet
Field Summary | |
protected short[] |
candidates
candidates from all of the VCGs. |
protected short[] |
elemNums
# of possible values in each VCG. |
protected int |
fullLength
full expansion length of this VCG set. |
protected int |
type
dimension type : single-active-valued, multiple-active-valued. |
protected int |
vcgNum
the num of VCG in this VCG set. |
protected short[] |
vcgOffsets
start point of each VCG in the format of one dimensional array. |
protected VCG[] |
vcgs
a set of VCG groups corresponding to one original output dimension. |
Constructor Summary | |
VCGSet(int type,
int vcgNum,
short[] elemNums)
constructor. |
Method Summary | |
short[] |
decideActiveValues()
Decides active elements from the VCG set (EXCEPT the SIGNAL VCG) according to the dimension type. |
double |
getActivation(int vcgIdx,
int elemIdx)
Returns the activation of a specific element. |
double[] |
getActivations()
Returns the activations. |
short[] |
getCandidates()
Returns the candidates. |
short[] |
getElemNums()
# of possible values in each VCG. |
int |
getFullLength()
Returns full length. |
double |
getMaxActivation(int vcgIdx)
Returns the MAX activation of a specific VCG. |
short |
getSignalCandidate()
Returns the signal candidate. |
int |
getType()
Returns the dimension type : single-active-valued, multiple-active-valued. |
int |
getVCGNum()
Returns the VCG num. |
void |
setActivations(double[] activations)
Sets activations. |
void |
setActiveValues(short[] activeValues)
Sets the active values of this dimension. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int type
protected int fullLength
protected int vcgNum
protected short[] elemNums
protected short[] vcgOffsets
protected VCG[] vcgs
protected short[] candidates
Constructor Detail |
public VCGSet(int type, int vcgNum, short[] elemNums)
type
- dimension type.vcgNum
- number of VCG.elemNums
- number of elements in each VCG.
Both vcgNum and elemNums consider the signal VCG.Method Detail |
public int getFullLength()
public int getType()
public int getVCGNum()
public short[] getElemNums()
public short[] getCandidates()
public short getSignalCandidate()
public double[] getActivations()
public double getActivation(int vcgIdx, int elemIdx)
vcgIdx
- an index to a VCG.elemIdx
- an index to an element in the VCG.
public double getMaxActivation(int vcgIdx)
vcgIdx
- an index to a VCG.
public void setActivations(double[] activations)
activations
- the activations calculated by BL.public void setActiveValues(short[] activeValues)
public short[] decideActiveValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |