net.sf.myra.antree
Class Util
java.lang.Object
net.sf.myra.antree.Util
public class Util
- extends java.lang.Object
- Version:
- $Revision: 2336 $ $Date:: 2011-08-09 17:39:15#$
- Author:
- Fernando Esteban Barril Otero
Constructor Summary |
Util()
|
Method Summary |
static java.util.List<net.sf.myra.datamining.data.Instance> |
filter(java.util.List<net.sf.myra.datamining.data.Instance> instances,
net.sf.myra.datamining.data.Term term,
net.sf.myra.datamining.data.Metadata metadata)
Filters the specified list of instances according to the test represented
by the term. |
static double |
precision(double value)
Returns the double value with up to four decimal digits. |
static java.util.List<net.sf.myra.datamining.data.Instance> |
split(java.util.List<net.sf.myra.datamining.data.Instance> instances,
net.sf.myra.datamining.data.Term term,
net.sf.myra.datamining.data.Metadata metadata)
|
static java.util.List<net.sf.myra.datamining.data.Instance> |
subset(java.util.List<net.sf.myra.datamining.data.Instance> instances,
net.sf.myra.datamining.data.Term term,
net.sf.myra.datamining.data.Metadata metadata)
Returns the subset of instances according to the test represented
by the term, not includung instances with missing values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
filter
public static java.util.List<net.sf.myra.datamining.data.Instance> filter(java.util.List<net.sf.myra.datamining.data.Instance> instances,
net.sf.myra.datamining.data.Term term,
net.sf.myra.datamining.data.Metadata metadata)
- Filters the specified list of instances according to the test represented
by the term.
- Parameters:
instances
- the list of instances to be filtered.term
- the filter criterion.
- Returns:
- a list of instances that satisfies the term test.
subset
public static java.util.List<net.sf.myra.datamining.data.Instance> subset(java.util.List<net.sf.myra.datamining.data.Instance> instances,
net.sf.myra.datamining.data.Term term,
net.sf.myra.datamining.data.Metadata metadata)
- Returns the subset of instances according to the test represented
by the term, not includung instances with missing values.
- Parameters:
instances
- the list of instances to be filtered.term
- the filter criterion.
- Returns:
- the subset of instances according to the test represented
by the term, not includung instances with missing values.
split
public static java.util.List<net.sf.myra.datamining.data.Instance> split(java.util.List<net.sf.myra.datamining.data.Instance> instances,
net.sf.myra.datamining.data.Term term,
net.sf.myra.datamining.data.Metadata metadata)
precision
public static final double precision(double value)
- Returns the double value with up to four decimal digits.
- Parameters:
value
- the value to be converted.
- Returns:
- the double value with up to four decimal digits.
Copyright © 2013. All Rights Reserved.