datastream_matrix {RMOA} | R Documentation |
data streams on a matrix
Description
Reference object of class datastream_matrix
.
This is a class which inherits from class datastream
and which can be used to read in a stream
from a matrix.
Arguments
data |
a matrix to extract data from in a streaming way |
Value
A class of type datastream_matrix
which contains
- data:
The matrix to extract instances from
- all fields of the datastream superclass:
See
datastream
Methods
-
get_points(n)
Get data from a datastream object.- n
integer, indicating the number of instances to retrieve from the datastream
See Also
Examples
data <- matrix(rnorm(1000*10), nrow = 1000, ncol = 10)
x <- datastream_matrix(data=data)
x$get_points(10)
x
x$get_points(10)
x
[Package RMOA version 1.1.0 Index]