public class SinglePeakWeightVector extends Object implements WeightVector
| Constructor and Description |
|---|
SinglePeakWeightVector(int m)
constructor for weight vector with peak value
|
| Modifier and Type | Method and Description |
|---|---|
int |
getWeight(int n)
checks, whether an element got the highest rank
|
public SinglePeakWeightVector(int m)
m - the value used to determine the weight of an objectpublic int getWeight(int n)
getWeight in interface WeightVectorn - the given parameter to compare withCopyright © 2018. All rights reserved.