public class BordaWeightVector extends java.lang.Object implements WeightVector
Modifier and Type | Field and Description |
---|---|
private int |
size |
Constructor and Description |
---|
BordaWeightVector(int size)
constructor for the borda weight vector
|
Modifier and Type | Method and Description |
---|---|
int |
getWeight(int n)
returns the weight based on the rank in the ranking function.
|
public BordaWeightVector(int size)
size
- the amount of domain elements in the preference orderpublic int getWeight(int n)
getWeight
in interface WeightVector
n
- the given parameter to compare with