public class BordaWeightVector extends Object implements WeightVector
| 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 WeightVectorn - the given parameter to compare withCopyright © 2018. All rights reserved.