类 SubspaceClusterDefinition
java.lang.Object
weka.datagenerators.ClusterDefinition
weka.datagenerators.clusterers.SubspaceClusterDefinition
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
A single cluster for the SubspaceCluster
datagenerator
Valid options are:
-A <range> Generates randomly distributed instances in the cluster.
-U <range> Generates uniformly distributed instances in the cluster.
-G <range> Generates gaussian distributed instances in the cluster.
-D <num>,<num> The attribute min/max (-A and -U) or mean/stddev (-G) for the cluster.
-N <num>..<num> The range of number of instances per cluster (default 1..50).
-I Uses integer instead of continuous values (default continuous).
- 版本:
- $Revision: 1.5 $
- 作者:
- Gabi Schmidberger (gabi@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器构造器说明initializes the cluster, without a parent cluster (necessary for GOE)initializes the cluster with default values -
方法概要
修饰符和类型方法说明Make a string from the attribues list.Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyboolean[]
returns the attribute range(s).Gets the cluster sub type.Gets the cluster type.int
Gets the upper boundary for instances per cluster.double[]
returns the current mean/stddev setupdouble[]
int
Gets the lower boundary for instances per cluster.double[]
int
String[]
Gets the current settings of the datagenerator BIRCHCluster.Returns the revision string.double[]
returns the range for each attribute as stringReturns a string describing this data generator.boolean
checks, whether cluster sub type is continuousboolean
checks, whether cluster type is gaussianboolean
checks, whether cluster sub type is integerboolean
isRandom()
checks, whether cluster type is randomboolean
checks, whether cluster type is uniformReturns an enumeration describing the available options.Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyvoid
setAttrIndexRange
(String rangeList) Sets which attributes are used in the cluster attributes among the selection will be discretized.void
setClusterSubType
(SelectedTag value) Sets the cluster sub type.void
setClusterType
(SelectedTag value) Sets the cluster type.void
setMaxInstNum
(int newMaxInstNum) Sets the upper boundary for instances per cluster.void
setMeanStddev
(String meanstddev) Sets mean and standarddeviation.void
setMinInstNum
(int newMinInstNum) Sets the lower boundary for instances per cluster.void
Sets the real number of instances for this cluster.void
setOptions
(String[] options) Parses a list of options for this object.void
setParent
(SubspaceCluster parent) sets the parent datagenerator this cluster belongs tovoid
setValuesList
(String fromToList) Sets the ranges for each attribute.void
setValuesList
(String fromToList, double[] first, double[] second, String optionLetter) Sets the ranges for each attribute.toString()
Make a string from the cluster features.Returns the tip text for this property从类继承的方法 weka.datagenerators.ClusterDefinition
getParent, parentTipText, setParent
-
构造器详细资料
-
SubspaceClusterDefinition
public SubspaceClusterDefinition()initializes the cluster, without a parent cluster (necessary for GOE) -
SubspaceClusterDefinition
initializes the cluster with default values- 参数:
parent
- the datagenerator this cluster belongs to
-
-
方法详细资料
-
globalInfo
Returns a string describing this data generator.- 覆盖:
globalInfo
在类中ClusterDefinition
- 返回:
- a description of the data generator suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 指定者:
listOptions
在类中ClusterDefinition
- 返回:
- an enumeration of all the available options
-
setOptions
Parses a list of options for this object. Valid options are:-A <range> Generates randomly distributed instances in the cluster.
-U <range> Generates uniformly distributed instances in the cluster.
-G <range> Generates gaussian distributed instances in the cluster.
-D <num>,<num> The attribute min/max (-A and -U) or mean/stddev (-G) for the cluster.
-N <num>..<num> The range of number of instances per cluster (default 1..50).
-I Uses integer instead of continuous values (default continuous).
- 指定者:
setOptions
在接口中OptionHandler
- 指定者:
setOptions
在类中ClusterDefinition
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the datagenerator BIRCHCluster.- 指定者:
getOptions
在接口中OptionHandler
- 指定者:
getOptions
在类中ClusterDefinition
- 返回:
- an array of strings suitable for passing to setOptions
-
attributesToString
Make a string from the attribues list.- 返回:
- the attributes as string
-
toString
Make a string from the cluster features.- 覆盖:
toString
在类中ClusterDefinition
- 返回:
- the cluster features as string
-
setParent
sets the parent datagenerator this cluster belongs to- 参数:
parent
- the parent datagenerator
-
setAttrIndexRange
Sets which attributes are used in the cluster attributes among the selection will be discretized.- 参数:
rangeList
- a string representing the list of attributes. Since the string will typically come from a user, attributes are indexed from 1.
eg: first-3,5,6-last
-
getAttrIndexRange
returns the attribute range(s).- 返回:
- the attribute range(s).
-
attrIndexRangeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getAttributes
public boolean[] getAttributes() -
getMinValue
public double[] getMinValue() -
getMaxValue
public double[] getMaxValue() -
getMeanValue
public double[] getMeanValue() -
getStddevValue
public double[] getStddevValue() -
getNumInstances
public int getNumInstances() -
getClusterType
Gets the cluster type.- 返回:
- the cluster type
- 另请参阅:
-
setClusterType
Sets the cluster type.- 参数:
value
- the new cluster type.- 另请参阅:
-
clusterTypeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getClusterSubType
Gets the cluster sub type.- 返回:
- the cluster sub type
- 另请参阅:
-
setClusterSubType
Sets the cluster sub type.- 参数:
value
- the new cluster sub type.- 另请参阅:
-
clusterSubTypeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
isRandom
public boolean isRandom()checks, whether cluster type is random- 返回:
- true if cluster type is random
-
isUniform
public boolean isUniform()checks, whether cluster type is uniform- 返回:
- true if cluster type is uniform
-
isGaussian
public boolean isGaussian()checks, whether cluster type is gaussian- 返回:
- true if cluster type is gaussian
-
isContinuous
public boolean isContinuous()checks, whether cluster sub type is continuous- 返回:
- true if cluster sub type is continuous
-
isInteger
public boolean isInteger()checks, whether cluster sub type is integer- 返回:
- true if cluster sub type is integer
-
getMinInstNum
public int getMinInstNum()Gets the lower boundary for instances per cluster.- 返回:
- the the lower boundary for instances per cluster
-
setMinInstNum
public void setMinInstNum(int newMinInstNum) Sets the lower boundary for instances per cluster.- 参数:
newMinInstNum
- new lower boundary for instances per cluster
-
minInstNumTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getMaxInstNum
public int getMaxInstNum()Gets the upper boundary for instances per cluster.- 返回:
- the upper boundary for instances per cluster
-
setMaxInstNum
public void setMaxInstNum(int newMaxInstNum) Sets the upper boundary for instances per cluster.- 参数:
newMaxInstNum
- new upper boundary for instances per cluster
-
maxInstNumTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setNumInstances
Sets the real number of instances for this cluster.- 参数:
r
- random number generator
-
setValuesList
Sets the ranges for each attribute.- 参数:
fromToList
- the string containing the upper and lower boundary for instances per cluster separated by ..- 抛出:
Exception
- if values are not correct in number or value
-
getValuesList
returns the range for each attribute as string -
valuesListTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setMeanStddev
Sets mean and standarddeviation.- 参数:
meanstddev
- the string containing the upper and lower boundary for instances per cluster separated by ..- 抛出:
Exception
- if values are not correct in number or value
-
getMeanStddev
returns the current mean/stddev setup -
meanStddevTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setValuesList
public void setValuesList(String fromToList, double[] first, double[] second, String optionLetter) throws Exception Sets the ranges for each attribute.- 参数:
fromToList
- the string containing the upper and lower boundary for instances per cluster separated by ..first
- the "from's"second
- the "to's"optionLetter
- the option, from which the list came- 抛出:
Exception
- if values are not correct in number or value
-
getRevision
Returns the revision string.- 返回:
- the revision
-