|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.pmml.VectorInstance
public class VectorInstance
Class encapsulating a PMML VectorInstance construct
Constructor Summary | |
---|---|
VectorInstance(Array values,
List<FieldRef> vectorFields)
Constructor |
|
VectorInstance(Element vecElement,
List<FieldRef> vectorFields)
Constructor |
Method Summary | |
---|---|
double |
dotProduct(double[] other)
Computes the dot product between this vector instance and the supplied array of values |
double |
dotProduct(VectorInstance other)
Computes the dot product between this vector instance and the argument |
String |
getID()
Get the ID of this vector instance |
Array |
getValues()
Get the Array of values encapsulated in this vector instance |
List<FieldRef> |
getVectorFields()
Get the mining fields that are indexed by this vector instance |
VectorInstance |
subtract(double[] other)
Subtract the values in the supplied array from this vector instance |
VectorInstance |
subtract(VectorInstance other)
Subtract the supplied VectorInstance from this one and return the result as a new VectorInstance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VectorInstance(Array values, List<FieldRef> vectorFields)
values
- the Array of values for this vector instancevectorFields
- the mining fields indexed by this vector instancepublic VectorInstance(Element vecElement, List<FieldRef> vectorFields) throws Exception
vecElement
- PMML element containing this vector instancevectorFields
- the mining fields indexed by this vector instance
Exception
- if something goes wrongMethod Detail |
---|
public String getID()
public Array getValues()
public List<FieldRef> getVectorFields()
public VectorInstance subtract(double[] other) throws Exception
other
- an array of values
Exception
- if something goes wrongpublic VectorInstance subtract(VectorInstance other) throws Exception
other
- the vector instance to subtract
Exception
- if something goes wrongpublic double dotProduct(VectorInstance other) throws Exception
other
- the vector instance to perform the dot product with
Exception
- if something goes wrongpublic double dotProduct(double[] other) throws Exception
other
- an array of values to perform the dot product with
Exception
- if something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |