Click or drag to resize
CVVSetupIndex Method
Setup an index VV from VV1 to VV2.

Available since Oasis montaj version: 5.0
License: Available to anyone with an Oasis Montaj license.  

Namespace: GeoEngine.Core.GXNetX
Assembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.dll)
Notes
The input reference VV must be in ascending numerical order. If your reference data is NOT ordered, then use the SortIndex1_VV function to create an order index, then sort both the reference and data VVs using this index VV before you call SetupIndex_VV. Example: You have a reference data set taken at specific times, hVVt, hVVy and you want to calculate/estimate/interpolate the values hVVy2 at a second set of times hVVt2 Step 1: Create an index, hVVi, type <define>GS_DOUBLE</define>, and call SetupIndex_VV. with: hVVt2, hVVi, VV_LOOKUP_XXX, rSpacing Internally, this assigns index values of 0.0, 1.0, 2.0 etc. to the individual values in hVVt, then, depending on the lookup method chosen, assigns fractional index values to the input values in hVVt2. Step 2: To determine what the lookup values hVVy2 should be at times hVVt2, call the LookupIndex_VV function for hVVy with hVVi, hVVy2 Internally, this assigns index values of 0.0, 1.0, 2.0 etc. to the individual values in hVVy, and uses linear interpolation to calculate the values of hVVy2 at the input indices contained in hVVi.
Syntax
public void SetupIndex(
	CVV vvq,
	CVV vvi,
	int mode,
	double space
)

Parameters

vvq
Type: GeoEngine.Core.GXNetXCVV
Query VV (same type as Data VV)
vvi
Type: GeoEngine.Core.GXNetXCVV
VV index VV of type REAL
mode
Type: SystemInt32
<define>VV_LOOKUP</define>
space
Type: SystemDouble
Spacing for some modes
See Also