Description Usage Arguments Details Value Author(s) See Also Examples
Generate a new synthetic multidimensional dynamic data stream having the desired properties.
1 2 | generate.dynamic.stream(n = 100, prop = 0.01, proptype = "proportional",
stream.config = NULL, verbose = FALSE)
|
n |
A vector containing |
prop |
Proportion of outliers in the hidden space. |
proptype |
Type of the proportion of outliers. Value "proportional": depend on the size of the empty space. Value "absolute": same absolute proportion per subspace. |
stream.config |
A stream configuration object. Should have been generated with |
verbose |
If TRUE, then the state of the stream will be printed as output for every 100 points. |
The data is generated uniformly, except in certain subspaces where the data is concentrated in particular
dependencies (i.e. in the "Wall" dependency, data concentrates on the axes, in a L-like shape).
This should create spaces with high dependency and space to observe hidden outliers.
Note that the proportion of outlier prop
does not relate directly to the percentage of outliers
in the output stream. Since it corresponds to the probability of a point, being ALREADY in the hidden space
to stay where it is, the overall proportion of outliers depends on the hidden space volume, which depends
on the number of subspaces and their margins. The greater the margin, the bigger the hidden space.
A an object of class stream
, which is a List
of 5 elements.
data
contains the stream generated
labels
contains the description of each point (0
if the point is not an outlier, or the subspace in which it is outlying as a string)
n
the number of points at each step
prop
the proportion of outliers in the hidden space
stream.config
the associated stream configuration object (which is valid only for dynamic streams)
Edouard Fouché, edouard.fouche@kit.edu
generate.stream.config
: generate a stream.config file for a dynamic or static stream
1 2 3 4 5 6 7 | # Generate a stream with default parameters
stream <- generate.dynamic.stream()
# Generate a stream with custom configuration
stream.config <- generate.stream.config(dim=50, nstep=10, volatility=0.5)
stream <- generate.dynamic.stream(n=100, prop=0.05, stream.config=stream.config)
# Output stream results (to uncomment)
# output.stream(stream, "example")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.