When you use a DataGenerator
object to generate data for a
DataSpecification
object with the Dimensions
property
set to 1, the output data always contains the minimum and maximum values of the specified
intervals, and any values specified by the MandatoryValues
property.
When you generate data for a DataSpecification
object with the
Dimensions
property set to a value greater than 1, the output is
generated by taking a cartesian product of the one-dimensional output.
For example, consider the following two DataSpecification
objects. The
two objects are identical except that one is one-dimensional, and the other is
two-dimensional.
Create
two
DataGenerator
objects based on these specifications. Set the maximum
number of data points in the generated data to
inf
.
Get the size of the generated data for each of the
configurations.
The
length of the two-dimensional data is exactly the squared length of the one-dimensional
data.
The DataGenerator
generates complex data in a similar way to the
two-dimensional data. Create a DataSpecification
object with
Dimensions
set to 1
and the
Complexity
set to complex
. Create a
DataGenerator
object using this
specification.
Get the size of the generated data from this configuration.
size_complex_data =
1 59536
The length of the output data for the one-dimensional complex data is the same as the
length of the two-dimensional real data.