Add Distribution Fitting & Simulation Features to Your Applications |
|||||||||||||||||||||||||
SPA SDK Help Home • Learn More About the SPA SDK | |||||||||||||||||||||||||
Input DataThe first step of the data analysis process is specifying your input data. The SPA SDK provides the SPADataSet object that works as a container for your data. To specify the data, use the SPADataSet.Assign function that accepts the following four combinations of input arguments:
In addition to the above mentioned data format requirements, the data must contain at least five values, and must not be constant. If one of these conditions is not met, the method will return an error (see Error Handling). ExampleThe following example initializes the SPADataSet object using the array of doubles:
Sub Test()
Dim data(5) As Double
Dim empty() As Double
Dim dataSet As New SPADataSet
SPAApplication.Initialize
' specify the data
data(0) = 1.5
data(1) = 3.2
data(2) = 9.6
data(3) = 4.1
data(4) = 7.8
' assign the data
Call dataSet.Assign(SPADomainContinuous, SPADataSample, data, empty)
End Sub
|
|||||||||||||||||||||||||
Copyright © MathWave Technologies www.mathwave.com |