public class DCT extends UnaryTransformer<Vector,Vector,DCT> implements DefaultParamsWritable
More information on DCT-II in Discrete cosine transform (Wikipedia).
Modifier and Type | Method and Description |
---|---|
boolean |
getInverse() |
BooleanParam |
inverse()
Indicates whether to perform the inverse DCT (true) or forward DCT (false).
|
static DCT |
load(String path) |
static MLReader<T> |
read() |
DCT |
setInverse(boolean value) |
String |
toString() |
StructType |
transformSchema(StructType schema)
Check transform validity and derive the output schema from the input schema.
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
copy, inputCol, outputCol, setInputCol, setOutputCol, transform
transform, transform, transform
params
write
save
getInputCol
getOutputCol
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
$init$, initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, initLock, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, uninitialize
public static DCT load(String path)
public static MLReader<T> read()
public String uid()
Identifiable
uid
in interface Identifiable
public BooleanParam inverse()
public DCT setInverse(boolean value)
public boolean getInverse()
public StructType transformSchema(StructType schema)
PipelineStage
We check validity for interactions between parameters during transformSchema
and
raise an exception if any parameter value is invalid. Parameter value checks which
do not depend on other parameters are handled by Param.validate()
.
Typical implementation should first conduct verification on schema change and parameter validity, including complex parameter interaction checks.
transformSchema
in class UnaryTransformer<Vector,Vector,DCT>
schema
- (undocumented)public String toString()
toString
in interface Identifiable
toString
in class Object