Package weka.classifiers.functions
Class BoundaryAndCentroidClassifier
java.lang.Object
weka.classifiers.AbstractClassifier
weka.classifiers.SingleClassifierEnhancer
weka.classifiers.functions.SingleClassifierEnhancerBoundary
weka.classifiers.functions.BoundaryAndCentroidClassifier
- All Implemented Interfaces:
Serializable
,Cloneable
,weka.classifiers.Classifier
,weka.core.BatchPredictor
,weka.core.CapabilitiesHandler
,weka.core.CapabilitiesIgnorer
,weka.core.CommandlineRunnable
,weka.core.OptionHandler
,weka.core.RevisionHandler
- Since:
- 2.0.0
- Version:
- 2.4.0
- Author:
- pawel trajdos
- See Also:
-
Field Summary
Fields inherited from class weka.classifiers.AbstractClassifier
BATCH_SIZE_DEFAULT, NUM_DECIMAL_PLACES_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildClassifier
(weka.core.Instances data) double[]
distributionForInstance
(weka.core.Instance instance) double
getEps()
String[]
double
weka.classifiers.functions.nearestCentroid.IClusterPrototype
boolean
boolean
Enumeration<weka.core.Option>
void
setEps
(double eps) void
setNormalize
(boolean normalize) void
setOptions
(String[] options) void
setPotFunction
(PotentialFunction potFunction) void
setProportion
(double proportion) void
setPrototypeProto
(weka.classifiers.functions.nearestCentroid.IClusterPrototype prototypeProto) void
setUsePriors
(boolean usePriors) Methods inherited from class weka.classifiers.functions.SingleClassifierEnhancerBoundary
getCapabilities, setClassifier
Methods inherited from class weka.classifiers.SingleClassifierEnhancer
classifierTipText, getClassifier, postExecution, preExecution
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getRevision, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
-
Constructor Details
-
BoundaryAndCentroidClassifier
-
BoundaryAndCentroidClassifier
public BoundaryAndCentroidClassifier()
-
-
Method Details
-
buildClassifier
- Throws:
Exception
-
distributionForInstance
- Specified by:
distributionForInstance
in interfaceweka.classifiers.Classifier
- Overrides:
distributionForInstance
in classweka.classifiers.AbstractClassifier
- Throws:
Exception
-
globalInfo
-
getPrototypeProto
public weka.classifiers.functions.nearestCentroid.IClusterPrototype getPrototypeProto()- Returns:
- the prototypeProto
-
setPrototypeProto
public void setPrototypeProto(weka.classifiers.functions.nearestCentroid.IClusterPrototype prototypeProto) - Parameters:
prototypeProto
- the prototypeProto to set
-
prototypeProtoTipText
-
getPotFunction
- Returns:
- the potFunction
-
setPotFunction
- Parameters:
potFunction
- the potFunction to set
-
potFunctionTipText
-
getProportion
public double getProportion()- Returns:
- the proportion
-
setProportion
public void setProportion(double proportion) - Parameters:
proportion
- the proportion to set
-
proportionTipText
-
getEps
public double getEps()- Returns:
- the eps
-
setEps
public void setEps(double eps) - Parameters:
eps
- the eps to set
-
epsTipText
-
isNormalize
public boolean isNormalize()- Returns:
- the normalize
-
setNormalize
public void setNormalize(boolean normalize) - Parameters:
normalize
- the normalize to set
-
normalizeTipText
-
listOptions
- Specified by:
listOptions
in interfaceweka.core.OptionHandler
- Overrides:
listOptions
in classweka.classifiers.SingleClassifierEnhancer
-
setOptions
- Specified by:
setOptions
in interfaceweka.core.OptionHandler
- Overrides:
setOptions
in classweka.classifiers.SingleClassifierEnhancer
- Throws:
Exception
-
getOptions
- Specified by:
getOptions
in interfaceweka.core.OptionHandler
- Overrides:
getOptions
in classweka.classifiers.SingleClassifierEnhancer
-
isUsePriors
public boolean isUsePriors()- Returns:
- the usePriors
-
setUsePriors
public void setUsePriors(boolean usePriors) - Parameters:
usePriors
- the usePriors to set
-
usePriorsTipText
-