Description Gets the Ith sample point value in a sampled spectrum. If the spectrum being queried is not a sampled spectrum, an error is set and the operation is halted.
Syntax ithValue = SpectrumGetSampledIthValue( spectNode, ithSample )
Parameters ithValue (Double) Value of the i'th sample point in the spectrum being queried.
spectNode As Long Node number of the spectrum being queried.
ithSample As Long Index of the sample point being queried. Sample points are zero-based (i.e. 0, 1, 2, ....).
Example The following example loops over all samples in a spectrum and prints the value of the sample point.
Dim sampCount As Long Dim ii As Long Dim ithValue As Double
sampCount = SpectrumGetSampledEntryCount( spectNode ) For ii = 0 To sampCount - 1 ithValue = SpectrumGetSampledIthValue( spectNode, ii ) Print ii & "'th value: " & ithValue Next ii
See Also SpectrumGetSampledIthWavelength
|