net.sf.myra.datamining.data
Class FunctionBasedBuilder

java.lang.Object
  extended by net.sf.myra.datamining.data.IntervalBuilder
      extended by net.sf.myra.datamining.data.FunctionBasedBuilder

public class FunctionBasedBuilder
extends IntervalBuilder

Experimental interval builder based on the Laplace function. Note: only works if the class is pre-selected.

Author:
Fernando Esteban Barril Otero

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.myra.datamining.data.IntervalBuilder
IntervalBuilder.CutPoint, IntervalBuilder.Interval
 
Field Summary
 
Fields inherited from class net.sf.myra.datamining.data.IntervalBuilder
BUILDER, DEFAULT_BUILDER, metadata, MINIMUM, minimumLimit
 
Constructor Summary
FunctionBasedBuilder(Metadata metadata)
           
 
Method Summary
 int count(java.util.List<Instance> instances, ContinuousAttribute attribute)
          Returns the number of candidate threshold values.
protected  IntervalBuilder.CutPoint create(double[][] matrix)
           
 IntervalBuilder.Interval[] create(java.util.List<Instance> instances, ContinuousAttribute attribute)
          Returns the discrete intervals for the specified continuous attribute.
 IntervalBuilder.Interval createSingle(java.util.List<Instance> instances, ContinuousAttribute attribute)
          Returns an interval for the specified continuous attribute tailored for the specified instances.
 IntervalBuilder.Interval createSingle(java.util.List<Instance> instances, ContinuousAttribute attribute, java.lang.String label)
          Returns a discrete interval for the specified continuous attribute tailored for the specified instances and class value.
 
Methods inherited from class net.sf.myra.datamining.data.IntervalBuilder
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionBasedBuilder

public FunctionBasedBuilder(Metadata metadata)
Method Detail

count

public int count(java.util.List<Instance> instances,
                 ContinuousAttribute attribute)
Description copied from class: IntervalBuilder
Returns the number of candidate threshold values.

Specified by:
count in class IntervalBuilder
Parameters:
instances - the list of instances.
attribute - the continuous attribute.
Returns:
the number of candidate threshold values.

create

public IntervalBuilder.Interval[] create(java.util.List<Instance> instances,
                                         ContinuousAttribute attribute)
Description copied from class: IntervalBuilder
Returns the discrete intervals for the specified continuous attribute.

Specified by:
create in class IntervalBuilder
Parameters:
instances - the list of instances.
attribute - the continuous attribute.
Returns:
the discrete intervals for the specified continuous attribute.

createSingle

public IntervalBuilder.Interval createSingle(java.util.List<Instance> instances,
                                             ContinuousAttribute attribute)
Description copied from class: IntervalBuilder
Returns an interval for the specified continuous attribute tailored for the specified instances.

Specified by:
createSingle in class IntervalBuilder
Parameters:
instances - the list of instances.
attribute - the continuous attribute.
Returns:
an interval for the specified continuous attribute tailored for the specified instance.

createSingle

public IntervalBuilder.Interval createSingle(java.util.List<Instance> instances,
                                             ContinuousAttribute attribute,
                                             java.lang.String label)
Description copied from class: IntervalBuilder
Returns a discrete interval for the specified continuous attribute tailored for the specified instances and class value. The instances are arranged into a binary distribution (i.e. instances that belong to the specified class and instances that do not belong to the specified class). Note that this operation may not be supporter by all interval builders.

Specified by:
createSingle in class IntervalBuilder
Parameters:
instances - the list of instances.
attribute - the continuous attribute.
label - the class label.
Returns:
a discrete interval for the specified continuous attribute tailored for the specified instances and class value.

create

protected IntervalBuilder.CutPoint create(double[][] matrix)


Copyright © 2013. All Rights Reserved.