Package org.aksw.palmetto.evaluate
Class SpeedComparison.TimeMeasuringProbabilitySupplier
- java.lang.Object
-
- org.aksw.palmetto.evaluate.SpeedComparison.AbstractTimeMeasuringModule
-
- org.aksw.palmetto.evaluate.SpeedComparison.TimeMeasuringProbabilitySupplier
-
- All Implemented Interfaces:
ProbabilityEstimator
- Enclosing class:
- SpeedComparison
public static class SpeedComparison.TimeMeasuringProbabilitySupplier extends SpeedComparison.AbstractTimeMeasuringModule implements ProbabilityEstimator
-
-
Field Summary
Fields Modifier and Type Field Description protected ProbabilityEstimatordecorated
-
Constructor Summary
Constructors Constructor Description TimeMeasuringProbabilitySupplier(String label, int numberOfWarmups, int numberOfRuns)TimeMeasuringProbabilitySupplier(ProbabilityEstimator decorated, int numberOfWarmups, int numberOfRuns)TimeMeasuringProbabilitySupplier(ProbabilityEstimator decorated, String name, int numberOfWarmups, int numberOfRuns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrequencyDeterminergetFrequencyDeterminer()Returns the frequency determiner used by this estimator.StringgetName()Returns the name of this probability estimator.SubsetProbabilities[]getProbabilities(String[][] wordsets, SegmentationDefinition[] definitions)Estimates the probabilities for the given word sets and the given segmentations.voidsetFrequencyDeterminer(FrequencyDeterminer determiner)Sets the frequency determiner that should be used by this estimator.voidsetMinFrequency(int minFrequency)Sets the minimum frequency a word (or word set) must have to get a probability > 0.-
Methods inherited from class org.aksw.palmetto.evaluate.SpeedComparison.AbstractTimeMeasuringModule
addTimeMeasurement, increaseRunId, printStatistics
-
-
-
-
Field Detail
-
decorated
protected ProbabilityEstimator decorated
-
-
Constructor Detail
-
TimeMeasuringProbabilitySupplier
public TimeMeasuringProbabilitySupplier(String label, int numberOfWarmups, int numberOfRuns)
-
TimeMeasuringProbabilitySupplier
public TimeMeasuringProbabilitySupplier(ProbabilityEstimator decorated, int numberOfWarmups, int numberOfRuns)
-
TimeMeasuringProbabilitySupplier
public TimeMeasuringProbabilitySupplier(ProbabilityEstimator decorated, String name, int numberOfWarmups, int numberOfRuns)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ProbabilityEstimatorReturns the name of this probability estimator.- Specified by:
getNamein interfaceProbabilityEstimator- Returns:
- the name of this probability estimator
-
getProbabilities
public SubsetProbabilities[] getProbabilities(String[][] wordsets, SegmentationDefinition[] definitions)
Description copied from interface:ProbabilityEstimatorEstimates the probabilities for the given word sets and the given segmentations.- Specified by:
getProbabilitiesin interfaceProbabilityEstimator- Parameters:
wordsets- word sets for which the probabilities should be estimateddefinitions- definitions how the word sets should be separated- Returns:
- the subset probabilities for the single word sets
-
getFrequencyDeterminer
public FrequencyDeterminer getFrequencyDeterminer()
Description copied from interface:ProbabilityEstimatorReturns the frequency determiner used by this estimator.- Specified by:
getFrequencyDeterminerin interfaceProbabilityEstimator- Returns:
- the frequency determiner used by this estimator
-
setFrequencyDeterminer
public void setFrequencyDeterminer(FrequencyDeterminer determiner)
Description copied from interface:ProbabilityEstimatorSets the frequency determiner that should be used by this estimator.- Specified by:
setFrequencyDeterminerin interfaceProbabilityEstimator- Parameters:
determiner- the frequency determiner used by this estimator
-
setMinFrequency
public void setMinFrequency(int minFrequency)
Description copied from interface:ProbabilityEstimatorSets the minimum frequency a word (or word set) must have to get a probability > 0.- Specified by:
setMinFrequencyin interfaceProbabilityEstimator- Parameters:
minFrequency- the minimum frequency of a word
-
-