public class Metric extends Object
| Constructor and Description |
|---|
Metric()
Creates a new instance of
Metric. |
Metric(Map<String,Double> resultMap) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCosineSimilarity()
Gets the cosineSimilarity.
|
double |
getEuclideanDistance()
Gets the euclideanDistance.
|
double |
getJaccardDistance()
Gets the jaccardDistance.
|
int |
getOverlappingAll()
Gets the overlappingAll value.
|
double |
getOverlappingLeftRight()
Gets the overlappingLeftRight value.
|
double |
getOverlappingRightLeft()
Gets the overlappingRightLeft value.
|
int |
getSizeLeft()
Gets the sizeLeft value.
|
int |
getSizeRight()
Gets the sizeRight value.
|
double |
getWeightedScoring()
Gets the weightedScoring value.
|
protected void |
setCosineSimilarity(double cosineSimilarity)
Sets the cosineSimilarity.
|
protected void |
setEuclideanDistance(double euclideanDistance)
Sets the euclideanDistance.
|
protected void |
setJaccardDistance(double jaccardDistance)
Sets the jaccardDistance.
|
protected void |
setOverlappingAll(int overlappingAll)
Sets the overlappingAll value.
|
protected void |
setOverlappingLeftRight(double overlappingLeftRight)
Sets the overlappingLeftRight value.
|
protected void |
setOverlappingRightLeft(double overlappingRightLeft)
Sets the overlappingRightLeft value.
|
protected void |
setSizeLeft(int sizeLeft)
Sets the sizeLeft value.
|
protected void |
setSizeRight(int sizeRight)
Sets the sizeRight value.
|
protected void |
setWeightedScoring(double weightedScoring)
Sets the weightedScoring value.
|
public Metric()
Metric.public double getCosineSimilarity()
public double getEuclideanDistance()
public double getJaccardDistance()
public int getOverlappingAll()
public double getOverlappingLeftRight()
public double getOverlappingRightLeft()
public int getSizeLeft()
public int getSizeRight()
public double getWeightedScoring()
protected void setCosineSimilarity(double cosineSimilarity)
cosineSimilarity - the cosineSimilarity to setprotected void setEuclideanDistance(double euclideanDistance)
euclideanDistance - the euclideanDistance to setprotected void setJaccardDistance(double jaccardDistance)
jaccardDistance - the jaccardDistance to setprotected void setOverlappingAll(int overlappingAll)
overlappingAll - the overlappingAll to setprotected void setOverlappingLeftRight(double overlappingLeftRight)
overlappingLeftRight - the overlappingLeftRight to setprotected void setOverlappingRightLeft(double overlappingRightLeft)
overlappingRightLeft - the overlappingRightLeft to setprotected void setSizeLeft(int sizeLeft)
sizeLeft - the sizeLeft to setprotected void setSizeRight(int sizeRight)
sizeRight - the sizeRight to setprotected void setWeightedScoring(double weightedScoring)
weightedScoring - the weightedScoring to setCopyright © 2015. All rights reserved.