net.sf.myra.cantminer
Class ThresholdHelper

java.lang.Object
  extended by net.sf.myra.cantminer.ThresholdHelper

public class ThresholdHelper
extends java.lang.Object

Utility class to calculate threshold values for continuous attributes.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Constructor Summary
ThresholdHelper(net.sf.myra.datamining.data.Metadata metadata)
          Default constructor.
 
Method Summary
 net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> create(net.sf.myra.datamining.data.ContinuousAttribute attribute, net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex, java.util.List<net.sf.myra.datamining.data.Instance> instances)
          Returns a copy of the specified vertex with a continuous attribute threshold information.
 net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> create(net.sf.myra.datamining.data.ContinuousAttribute attribute, net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex, java.util.List<net.sf.myra.datamining.data.Instance> instances, boolean first)
          Returns a copy of the specified vertex with a continuous attribute threshold information.
 net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> create(net.sf.myra.datamining.data.ContinuousAttribute attribute, net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex, java.util.List<net.sf.myra.datamining.data.Instance> instances, java.lang.String value)
          Returns a copy of the specified vertex with a continuous attribute threshold information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdHelper

public ThresholdHelper(net.sf.myra.datamining.data.Metadata metadata)
Default constructor.

Parameters:
metadata - the current metadata instance.
Method Detail

create

public net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> create(net.sf.myra.datamining.data.ContinuousAttribute attribute,
                                                                             net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex,
                                                                             java.util.List<net.sf.myra.datamining.data.Instance> instances)
Returns a copy of the specified vertex with a continuous attribute threshold information.

Parameters:
attribute - the continuous attribute name instance.
vertex - the vertex representing the continuous attribute.
instances - the instances used in the threshold calculation.
Returns:
a copy of the specified vertex with a continuous attribute threshold information.

create

public net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> create(net.sf.myra.datamining.data.ContinuousAttribute attribute,
                                                                             net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex,
                                                                             java.util.List<net.sf.myra.datamining.data.Instance> instances,
                                                                             java.lang.String value)
Returns a copy of the specified vertex with a continuous attribute threshold information.

Parameters:
attribute - the continuous attribute name instance.
vertex - the vertex representing the continuous attribute.
instances - the instances used in the threshold calculation.
value - the target class value.
Returns:
a copy of the specified vertex with a continuous attribute threshold information.

create

public net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> create(net.sf.myra.datamining.data.ContinuousAttribute attribute,
                                                                             net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex,
                                                                             java.util.List<net.sf.myra.datamining.data.Instance> instances,
                                                                             boolean first)
Returns a copy of the specified vertex with a continuous attribute threshold information.

Parameters:
attribute - the continuous attribute name instance.
vertex - the vertex representing the continuous attribute.
instances - the instances used in the threshold calculation.
first - indicates if the specified vertex is the first of the trail
Returns:
a copy of the specified vertex with a continuous attribute threshold information.


Copyright © 2013. All Rights Reserved.