public class DateFeature extends java.lang.Object implements FeatureGenerator<java.util.Date>
| Modifier and Type | Class and Description |
|---|---|
static class |
DateFeature.Type
The types of date/time features.
|
| Constructor and Description |
|---|
DateFeature(DateFeature.Type[] types)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
smile.data.Attribute[] |
attributes()
Returns the variable attributes of generated features.
|
double[] |
feature(java.util.Date date)
Generates a feature for given object.
|
public DateFeature(DateFeature.Type[] types)
types - the types of features to be generated.public smile.data.Attribute[] attributes()
FeatureGeneratorattributes in interface FeatureGenerator<java.util.Date>public double[] feature(java.util.Date date)
FeatureGeneratorfeature in interface FeatureGenerator<java.util.Date>date - an object of interest.