Appendix A. CRBasic Programming Instructions
479
A.6.10 Other Functions
AddPrecise
UsedinconjunctionwithMovePrecise,allowshigh‐precisiontotalizingof
variablesormanipulationofhigh‐precisionvariables.
Syntax
AddPrecise(PrecisionVariable, X)
AvgRun
Storesarunningaverageofameasurement.
Syntax
AvgRun(Dest, Reps, Source, Number)
Note AvgRun() should not be inserted within a For / Next construct with the
Source and Dest parameters indexed and Reps set to 1. In essence this would be
performing a single running average, using the values of the different elements of
the array, instead of performing an independent running average on each element
of the array. The results will be a running aerage of a spatial average on the
various source array's elements.
Randomize
Initializestherandom‐numbergenerator.
Syntax
Randomize(source)
RND
Generatesarandomnumber.
Syntax
RND(source)
A.6.10.1 Histograms
Histogram
Processesinputdataaseitherastandardhistogram(frequencydistribution)ora
weighted‐valuehistogram.
Syntax
Histogram(BinSelect, DataType, DisableVar, Bins, Form, WtVal,
LoLim, UpLim)
Histogram4D
Processesinputdataaseitherastandardhistogram(frequencydistribution)ora
weighted‐valuehistogramofuptofourdimensions.
Syntax
Histogram4D(BinSelect, Source, DataType, DisableVar, Bins1,
Bins2, Bins3, Bins4, Form, WtVal, LoLim1, UpLim1, LoLim2,
UpLim2, LoLim3, UpLim3, LoLim4, UpLim4)