public class ChiSquare extends NXYSignificanceHeuristic
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ChiSquare.ChiSquareBuilder |
static class |
ChiSquare.ChiSquareParser |
NXYSignificanceHeuristic.Frequencies, NXYSignificanceHeuristic.NXYBuilder, NXYSignificanceHeuristic.NXYParser| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static ParseField |
NAMES_FIELD |
static SignificanceHeuristicStreams.Stream |
STREAM |
BACKGROUND_IS_SUPERSET, backgroundIsSuperset, INCLUDE_NEGATIVES_FIELD, includeNegatives, SCORE_ERROR_MESSAGE| コンストラクタと説明 |
|---|
ChiSquare(boolean includeNegatives,
boolean backgroundIsSuperset) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(Object other) |
double |
getScore(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize)
Calculates Chi^2
see "Information Retrieval", Manning et al., Eq. 13.19
|
int |
hashCode() |
void |
writeTo(StreamOutput out) |
checkFrequencies, computeNxyscheckFrequencyValidity, initializeprotected static final ParseField NAMES_FIELD
public static final SignificanceHeuristicStreams.Stream STREAM
public boolean equals(Object other)
equals クラス内 NXYSignificanceHeuristicpublic int hashCode()
hashCode クラス内 NXYSignificanceHeuristicpublic double getScore(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize)
getScore クラス内 SignificanceHeuristicsubsetFreq - The frequency of the term in the selected samplesubsetSize - The size of the selected sample (typically number of docs)supersetFreq - The frequency of the term in the superset from which the sample was takensupersetSize - The size of the superset from which the sample was taken (typically number of docs)public void writeTo(StreamOutput out) throws IOException
writeTo クラス内 NXYSignificanceHeuristicIOExceptionCopyright © 2009–2016. All rights reserved.