override fun toString(): String { val text = StringBuffer() text.append( """ Print statistic values of instances (${first.toString()}-${last.toString()}=  """.trimIndent() ) text.append( """ Number of instances: ${numInstances.toString()} """ ) text.append( """ NUmber of instances with unknowns: ${missingInstances.toString()} """ ) text.append( """ Attribute: :${attr.toString()} """ ) text.append( """ Sum: ${sum.toString()} """ ) text.append( """ Squared sum: ${sqrSum.toString()} """ ) text.append( """ Stanard Deviation: ${sd.toString()} """ ) return text.toString() }
Converts the stats to a string