public class SinglePeakWeightVector extends java.lang.Object implements WeightVector
Modifier and Type | Field and Description |
---|---|
private int |
m
given value of the peak element
|
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 WeightVector
n
- the given parameter to compare with