|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object peersim.vector.VectControl peersim.vector.Normalizer
public class Normalizer
Normalizes the values of a protocol vector. The normalization is based on the L1 norm, that is, the sum of the absolute values of the vector elements. Parameter "l1" defines the L1 norm that the vector will have after normalization.
VectControl
,
peersim.vector
Parameter Summary | |
---|---|
l1
The L1 norm (sum of absolute values) to normalize to. |
Parameters inherited from class peersim.vector.VectControl |
---|
protocol, setter, getter |
Field Summary |
---|
Fields inherited from class peersim.vector.VectControl |
---|
getter, setter |
Constructor Summary | |
---|---|
Normalizer(java.lang.String prefix)
Standard constructor that reads the configuration parameters. |
Method Summary | |
---|---|
boolean |
execute()
Makes the sum of the absolute values (L1 norm) equal to the value given in the configuration parameter "l1". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter Detail |
---|
l1
Constructor Detail |
---|
public Normalizer(java.lang.String prefix)
prefix
- the configuration prefix for this classMethod Detail |
---|
public boolean execute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |