public class SingleValeWeightVector extends java.lang.Object implements WeightVector
Modifier and Type | Field and Description |
---|---|
private int |
m
value of the least chosen element
|
Constructor and Description |
---|
SingleValeWeightVector(int m)
constructor setting the value for the least chosen element
|
Modifier and Type | Method and Description |
---|---|
int |
getWeight(int n)
returns the weight of the element
|
public SingleValeWeightVector(int m)
m
- least rank used in ranking function for the preference orderspublic int getWeight(int n)
getWeight
in interface WeightVector
n
- the given parameter to compare with