getNumDataPointsInfo
Get information about number of data points in generated data
Description
returns information about the data points generated by the datainfo = getNumDataPointsInfo(datagenerator)fixed.DataGenerator object, datagenerator.
Examples
The getNumDataPointsInfo function returns
information related to the number of data points in the data generated from a
fixed.DataGenerator object.
dataspec = fixed.DataSpecification('fixdt(1,16,13)',... 'Intervals', {-1,1})
dataspec =
fixed.DataSpecification with properties:
DataTypeStr: 'sfix16_En13'
Intervals: [-1,1]
MandatoryValues: <empty>
Complexity: 'real'
Dimensions: 1datagen = fixed.DataGenerator('DataSpecifications', dataspec,... 'NumDataPointsLimit', 20); getNumDataPointsInfo(datagen)
ans =
struct with fields:
Current: 20
Next: 21
Min: 5
Max: 75The output indicates that there are currently 20 data combinations in the generated
data. The maximum number of combinations that the DataGenerator
object would produce is 75.
When the dimension of the generated data is greater than one, it can be useful to find the next possible size of generated data.
Create a DataGenerator object where the associated
DataSpecification object specifies 2-dimensional data.
dataspec = fixed.DataSpecification('single', 'Dimensions', 2); datagen = fixed.DataGenerator('DataSpecifications', dataspec)
datagen =
fixed.DataGenerator with properties:
DataSpecifications: {[1×1 fixed.DataSpecification]}
NumDataPointsLimit: 100000The DataGenerator object uses the default limit of 100000 data
points in the generated data.
Get information about the number of data points generated.
getNumDataPointsInfo(datagen)
ans =
struct with fields:
Current: 99856
Next: 100489
Min: 81
Max: 130321The current size of the generated data is 99856 points. By setting the
NumDataPointsLimit property of the DataGenerator
object to the value specified in Max, you can get the maximum
possible number of data combinations.
Set the NumDataPointsLimit property of the
DataGenerator object to the maximum possible number of data
points.
datagen.NumDataPointsLimit = 130321; getNumDataPointsInfo(datagen)
ans =
struct with fields:
Current: 130321
Next: 130321
Min: 81
Max: 130321Input Arguments
Object from which you want to get information, specified as a fixed.DataGenerator object.
Output Arguments
Information about the number of data points in the data generated from a
fixed.DataGenerator object, returned as a structure with the
following fields.
| Field | Description |
|---|---|
Current | The number of data combinations in the generated data. |
Next | Next possible size of data combinations. |
Min | Minimum number of combinations of data required to be in the generated data. This number is equal to the number of boundary
values and mandatory values in the |
Max | Maximum number of combinations that could be in the generated data. |
Version History
Introduced in R2019b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)