public class NumericAttribute extends Attribute
Modifier and Type | Method and Description |
---|---|
AttributeType |
attrType()
Attribute type.
|
static NumericAttribute |
defaultAttr()
The default numeric attribute.
|
boolean |
equals(Object other) |
int |
hashCode() |
scala.Option<Object> |
index()
Index of the attribute.
|
boolean |
isNominal()
Tests whether this attribute is nominal, true for
NominalAttribute and BinaryAttribute . |
boolean |
isNumeric()
Tests whether this attribute is numeric, true for
NumericAttribute and BinaryAttribute . |
scala.Option<Object> |
max() |
scala.Option<Object> |
min() |
scala.Option<String> |
name()
Name of the attribute.
|
scala.Option<Object> |
sparsity() |
scala.Option<Object> |
std() |
NumericAttribute |
withIndex(int index)
Copy with a new index.
|
NumericAttribute |
withMax(double max)
Copy with a new max value.
|
NumericAttribute |
withMin(double min)
Copy with a new min value.
|
NumericAttribute |
withName(String name)
Copy with a new name.
|
NumericAttribute |
withoutIndex()
Copy without the index.
|
NumericAttribute |
withoutMax()
Copy without the max value.
|
NumericAttribute |
withoutMin()
Copy without the min value.
|
NumericAttribute |
withoutName()
Copy without the name.
|
NumericAttribute |
withoutSparsity()
Copy without the sparsity.
|
NumericAttribute |
withoutStd()
Copy without the standard deviation.
|
NumericAttribute |
withoutSummary()
Copy without summary statistics.
|
NumericAttribute |
withSparsity(double sparsity)
Copy with a new sparsity.
|
NumericAttribute |
withStd(double std)
Copy with a new standard deviation.
|
toMetadata, toMetadata, toString, toStructField, toStructField
public static NumericAttribute defaultAttr()
public scala.Option<String> name()
Attribute
public scala.Option<Object> index()
Attribute
public scala.Option<Object> min()
public scala.Option<Object> max()
public scala.Option<Object> std()
public scala.Option<Object> sparsity()
public AttributeType attrType()
Attribute
public NumericAttribute withName(String name)
Attribute
public NumericAttribute withoutName()
Attribute
withoutName
in class Attribute
public NumericAttribute withIndex(int index)
Attribute
public NumericAttribute withoutIndex()
Attribute
withoutIndex
in class Attribute
public NumericAttribute withMin(double min)
public NumericAttribute withoutMin()
public NumericAttribute withMax(double max)
public NumericAttribute withoutMax()
public NumericAttribute withStd(double std)
public NumericAttribute withoutStd()
public NumericAttribute withSparsity(double sparsity)
public NumericAttribute withoutSparsity()
public NumericAttribute withoutSummary()
public boolean isNumeric()
Attribute
NumericAttribute
and BinaryAttribute
.public boolean isNominal()
Attribute
NominalAttribute
and BinaryAttribute
.public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object