|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.reusablecores.InstanceManipulation
public class InstanceManipulation
Helper class for performing manipulations of weka Instance and Instances objects.
Constructor Summary | |
---|---|
InstanceManipulation()
|
Method Summary | |
---|---|
static Instance |
instanceConcatenation(Instance[] data,
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 Instance[] |
normalizeFieldNames(Instance[] data,
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<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<Instance> propertyToInstance(Property property)
property
- property object to be transformed into a Instance.
public static Instance instanceConcatenation(Instance[] data, Instances[] meta)
data
- array of Instance objectsmeta
- array of Instances backing the data array
public static Instance[] normalizeFieldNames(Instance[] data, 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 |