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() |
static Metadata |
toMetadata() |
static Metadata |
toMetadata(Metadata existingMetadata) |
static String |
toString() |
static StructField |
toStructField() |
static StructField |
toStructField(Metadata existingMetadata) |
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, toStructFieldpublic static NumericAttribute defaultAttr()
public static Metadata toMetadata()
public static StructField toStructField(Metadata existingMetadata)
public static StructField toStructField()
public static String toString()
public scala.Option<String> name()
Attributepublic scala.Option<Object> index()
Attributepublic scala.Option<Object> min()
public scala.Option<Object> max()
public scala.Option<Object> std()
public scala.Option<Object> sparsity()
public AttributeType attrType()
Attributepublic NumericAttribute withName(String name)
Attributepublic NumericAttribute withoutName()
AttributewithoutName in class Attributepublic NumericAttribute withIndex(int index)
Attributepublic NumericAttribute withoutIndex()
AttributewithoutIndex in class Attributepublic 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()
AttributeNumericAttribute and BinaryAttribute.public boolean isNominal()
AttributeNominalAttribute and BinaryAttribute.public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object