|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.algorithm.reusablecores.InstanceManipulation
public class InstanceManipulation
Helper class for performing manipulations of weka Instance and Instances objects.
Constructor Summary | |
---|---|
InstanceManipulation()
|
Method Summary | |
---|---|
static weka.core.Instance |
instanceConcatenation(weka.core.Instance[] data,
weka.core.Instances[] meta)
Takes the contents of the Instance array and creates a new Instance object whose attributes are the attributes of the Instance objects in sequence backed by a new Dataset relfecting the new set of attributes. |
static weka.core.Instance[] |
normalizeFieldNames(weka.core.Instance[] data,
weka.core.Instances[] meta)
Takes an array of Instance objects and create a new array of Instance objects backed by a single Dataset. |
static java.util.LinkedList<weka.core.Instance> |
propertyToInstance(Property property)
Transforms a property into an Instance object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceManipulation()
Method Detail |
---|
public static java.util.LinkedList<weka.core.Instance> propertyToInstance(Property property)
property
- property object to be transformed into a Instance.
public static weka.core.Instance instanceConcatenation(weka.core.Instance[] data, weka.core.Instances[] meta)
data
- array of Instance objectsmeta
- array of Instances backing the data array
public static weka.core.Instance[] normalizeFieldNames(weka.core.Instance[] data, weka.core.Instances[] meta)
data
- array of Instance objects to normalizemeta
- array of Instances objects backing the objects in the data array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |