public class LookupParams extends Object
| Constructor and Description |
|---|
LookupParams(FIEnums.AlgoType algo,
FIEnums.DistanceTypes dist,
boolean weighted)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
FIEnums.AlgoType |
getAlgo()
Retreves the algorithm
|
FIEnums.DistanceTypes |
getDist()
Retrieves teh distance measure
|
boolean |
isWeighted()
Checks if weights are used
|
void |
setAlgo(FIEnums.AlgoType algo)
Sets teh algorithm
|
void |
setDist(FIEnums.DistanceTypes dist)
Sets the distance measure
|
void |
setWeighted(boolean weighted)
Sets if weights should be used
|
public LookupParams(FIEnums.AlgoType algo, FIEnums.DistanceTypes dist, boolean weighted)
algo - The lookup algorithm to usedist - The distance to useweighted - use weightspublic FIEnums.AlgoType getAlgo()
public void setAlgo(FIEnums.AlgoType algo)
algo - The algorithmpublic FIEnums.DistanceTypes getDist()
public void setDist(FIEnums.DistanceTypes dist)
dist - The distance measurepublic boolean isWeighted()
true if weights are used, false otherwisepublic void setWeighted(boolean weighted)
weighted - true, or falseCopyright © 2014. All Rights Reserved.