public class SubspaceClusterDefinition extends ClusterDefinition
-A <range> Uses a random uniform distribution for the instances in the cluster.
-U <range> Generates totally uniformly distributed instances in the cluster.
-G <range> Uses a Gaussian distribution for the instances in the cluster.
-D <num>,<num> The attribute min/max (-A and -U) or mean/stddev (-G) for the cluster, repeated for each attribute.
-N <num>..<num> The range of number of instances per cluster (default 1..50).
-I Uses integer instead of continuous values (default: continuous).
SubspaceCluster
,
Serialized FormConstructor and Description |
---|
SubspaceClusterDefinition()
Needed so that this class can be found as permissible.
|
SubspaceClusterDefinition(ClusterGenerator parent)
initializes the cluster with default values
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
attributesToString()
Make a string from the attribues list.
|
java.lang.String |
attrIndexRangeTipText()
Returns the tip text for this property
|
java.lang.String |
clusterSubTypeTipText()
Returns the tip text for this property
|
java.lang.String |
clusterTypeTipText()
Returns the tip text for this property
|
boolean[] |
getAttributes() |
java.lang.String |
getAttrIndexRange()
returns the attribute range(s).
|
SelectedTag |
getClusterSubType()
Gets the cluster sub type.
|
SelectedTag |
getClusterType()
Gets the cluster type.
|
int |
getMaxInstNum()
Gets the upper boundary for instances per cluster.
|
double[] |
getMaxValue() |
double[] |
getMeanValue() |
int |
getMinInstNum()
Gets the lower boundary for instances per cluster.
|
double[] |
getMinValue() |
int |
getNumInstances() |
java.lang.String[] |
getOptions()
Gets the current settings of the datagenerator BIRCHCluster.
|
java.lang.String |
getRevision()
Returns the revision string.
|
double[] |
getStddevValue() |
java.lang.String |
getValuesList()
returns the range for each attribute as string
|
java.lang.String |
globalInfo()
Returns a string describing this data generator.
|
boolean |
isContinuous()
checks, whether cluster sub type is continuous
|
boolean |
isGaussian()
checks, whether cluster type is gaussian
|
boolean |
isInteger()
checks, whether cluster sub type is integer
|
boolean |
isRandom()
checks, whether cluster type is random
|
boolean |
isUniform()
checks, whether cluster type is uniform
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
java.lang.String |
maxInstNumTipText()
Returns the tip text for this property
|
java.lang.String |
minInstNumTipText()
Returns the tip text for this property
|
void |
setAttrIndexRange(java.lang.String rangeList)
Sets which attributes are used in the cluster.
|
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 |
setMinInstNum(int newMinInstNum)
Sets the lower boundary for instances per cluster.
|
void |
setNumInstances(java.util.Random r)
Sets the real number of instances for this cluster.
|
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object.
|
void |
setValuesList(java.lang.String fromToList)
Sets the ranges for each attribute.
|
java.lang.String |
toString()
Make a string from the cluster features.
|
java.lang.String |
valuesListTipText()
Returns the tip text for this property
|
getParent, parentTipText, setParent
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public SubspaceClusterDefinition()
public SubspaceClusterDefinition(ClusterGenerator parent)
parent
- the datagenerator this cluster belongs topublic java.lang.String globalInfo()
globalInfo
in class ClusterDefinition
public java.util.Enumeration<Option> listOptions()
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-A <range> Uses a random uniform distribution for the instances in the cluster.
-U <range> Generates totally uniformly distributed instances in the cluster.
-G <range> Uses a Gaussian distribution for the instances in the cluster.
-D <num>,<num> The attribute min/max (-A and -U) or mean/stddev (-G) for the cluster, repeated for each attribute.
-N <num>..<num> The range of number of instances per cluster (default 1..50).
-I Uses integer instead of continuous values (default: continuous).
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
public java.lang.String attributesToString()
public java.lang.String toString()
toString
in class ClusterDefinition
public void setAttrIndexRange(java.lang.String rangeList)
rangeList
- a string representing the list of attributes. Since the
string will typically come from a user, attributes are indexed
from 1. public java.lang.String getAttrIndexRange()
public java.lang.String attrIndexRangeTipText()
public boolean[] getAttributes()
public double[] getMinValue()
public double[] getMaxValue()
public double[] getMeanValue()
public double[] getStddevValue()
public int getNumInstances()
public SelectedTag getClusterType()
SubspaceCluster.TAGS_CLUSTERTYPE
public void setClusterType(SelectedTag value)
value
- the new cluster type.SubspaceCluster.TAGS_CLUSTERTYPE
public java.lang.String clusterTypeTipText()
public SelectedTag getClusterSubType()
SubspaceCluster.TAGS_CLUSTERSUBTYPE
public void setClusterSubType(SelectedTag value)
value
- the new cluster sub type.SubspaceCluster.TAGS_CLUSTERSUBTYPE
public java.lang.String clusterSubTypeTipText()
public boolean isRandom()
public boolean isUniform()
public boolean isGaussian()
public boolean isContinuous()
public boolean isInteger()
public int getMinInstNum()
public void setMinInstNum(int newMinInstNum)
newMinInstNum
- new lower boundary for instances per clusterpublic java.lang.String minInstNumTipText()
public int getMaxInstNum()
public void setMaxInstNum(int newMaxInstNum)
newMaxInstNum
- new upper boundary for instances per clusterpublic java.lang.String maxInstNumTipText()
public void setNumInstances(java.util.Random r)
r
- random number generatorpublic void setValuesList(java.lang.String fromToList) throws java.lang.Exception
fromToList
- the string containing the upper and lower boundary for
instances per cluster separated by ..java.lang.Exception
- if values are not correct in number or valuepublic java.lang.String getValuesList()
public java.lang.String valuesListTipText()
public java.lang.String getRevision()