public class DenseSparceTransform extends Object implements DataTransform
Constructor and Description |
---|
DenseSparceTransform(double factor)
Creates a new Dense Sparce Transform.
|
Modifier and Type | Method and Description |
---|---|
DenseSparceTransform |
clone() |
void |
fit(DataSet data)
Fits this transform to the given dataset.
|
DataPoint |
transform(DataPoint dp)
Returns a new data point that is a transformation of the original data
point.
|
public DenseSparceTransform(double factor)
factor
- the fraction of the vectors values that may be non zero to qualify as sparcepublic void fit(DataSet data)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
data
- the dataset to fir this transform topublic DataPoint transform(DataPoint dp)
DataTransform
transform
in interface DataTransform
dp
- the data point to apply a transformation topublic DenseSparceTransform clone()
clone
in interface DataTransform
clone
in class Object
Copyright © 2017. All rights reserved.