weka-kt

wekakt / com.github.stevenlang.wekakt.extensions / weka.core.Instance

Extensions for weka.core.Instance

Name Summary
get operator fun Instance.get(attributeIndex: Int): Double
Get the attribute value at attributeIndex.
operator fun Instance.get(attribute: Attribute): Double
Get the attribute value for attribute.
isEqualTo fun Instance.isEqualTo(other: Any?): Boolean
Check if this instance is equal to another instance object.
numAttributes val Instance.numAttributes: Int
Number of attributes.
set operator fun Instance.set(attributeIndex: Int, value: Number): Unit
operator fun Instance.set(attributeIndex: Int, value: String): Unit
Set the attribute value at attributeIndex.
operator fun Instance.set(attribute: Attribute, value: Number): Unit
operator fun Instance.set(attribute: Attribute, value: String): Unit
Set the attribute value of attribute.