public class Dyad
extends java.lang.Object
| Constructor and Description |
|---|
Dyad(ai.libs.jaicore.math.linearalgebra.Vector instance,
ai.libs.jaicore.math.linearalgebra.Vector alternative)
Construct a new dyad consisting of the given instance and alternative.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ai.libs.jaicore.math.linearalgebra.Vector |
getAlternative()
Get the alternative.
|
ai.libs.jaicore.math.linearalgebra.Vector |
getInstance()
Get the instance.
|
int |
hashCode() |
java.lang.String |
toString() |
org.nd4j.linalg.api.ndarray.INDArray |
toVector()
Converts a dyad to a
INDArray row vector consisting of a
concatenation of the instance and alternative features. |
public Dyad(ai.libs.jaicore.math.linearalgebra.Vector instance,
ai.libs.jaicore.math.linearalgebra.Vector alternative)
instance - The instancealternative - The alternativepublic ai.libs.jaicore.math.linearalgebra.Vector getInstance()
public ai.libs.jaicore.math.linearalgebra.Vector getAlternative()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic org.nd4j.linalg.api.ndarray.INDArray toVector()
INDArray row vector consisting of a
concatenation of the instance and alternative features.INDArray row vector form.