powered by
Make an unscaled data stream into a scaled data stream.
DSD_ScaleStream(dsd, center = TRUE, scale = TRUE, n = 1000, reset = FALSE)
An object of class DSD_ScaleStream (subclass of DSD_R, DSD).
DSD_ScaleStream
DSD_R
DSD
A object of class DSD that will be scaled.
logical or a numeric vector of length equal to the number of columns used for centering/scaling (see function scale).
scale
The number of points used to creating the centering/scaling
Try to reset the stream to its beginning after taking n points for scaling.
n
Michael Hahsler
scale_stream() estimates the values for centering and scaling (see scale in base) using n points from the stream.
scale_stream()
DSD, reset_stream, scale in base,
reset_stream
stream <- DSD_Gaussians(k=3, d=3) plot(stream) # scale stream using 100 points stream_scaled <- DSD_ScaleStream(stream, n=100) plot(stream_scaled)
Run the code above in your browser using DataLab