Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



scrollbar


Table of Contents

Input
  • input

...

 The options available are:

  • notAllowed,
  • maxMin,
  • linear
  • class

 If the first option, notAllowed, is configured an input value outside the range will return a missing value. The second option will return the minimum value or the maximum value in the lookup table. The third option linear enables the extrapolation for the function.

...

Code Block
languagexml
titleconfig example lookupTableRow
<transformation id="simpleTableLookup">
	<lookup>
		<simple>
			<input>
				<variableId>H1</variableId>
			</input>
			<coefficientSet>
				<interpolationType>linear</interpolationType>
				<extrapolationType>extrapolate</extrapolationType>
				<inputUnit>m</inputUnit>
				<outputUnit>mm</outputUnit>
				<lookupTable>
					<lookupTableRow input="1.8" output="4000"/>
					<lookupTableRow input="2.0" output="6000"/>
					<lookupTableRow input="2.2" output="8000"/>
					<lookupTableRow input="2.4" output="10000"/>
					<lookupTableRow input="2.6" output="12000"/>
					<lookupTableRow input="2.8" output="14000"/>
					<lookupTableRow input="3.0" output="16000"/>
					<lookupTableRow input="3.2" output="18000"/>
					<lookupTableRow input="3.4" output="20000"/>
					<lookupTableRow input="3.6" output="22000"/>
				</lookupTable>
			</coefficientSet>
			<output>
				<variableId>H2</variableId>
			</output>
		</simple>
	</lookup>
</transformation>


In case of class interpolation we look at which input threshold (lower or higher) the value is closest to, and the output responding to that threshold will be the output.  Using the example bellow it mean for an input 0 the output will be 0, for input 160 output will be 2, for input 499 output will be 5. When the input falls exactly between the two thresholds, it will be rounded up, so for input 500 the output will be 6.

Code Block
languagexml
titleclass interpolation
linenumberstrue
<transformation id="ClassInterpolation">
	<lookup>
		<simple>
			<input>
				<variableId>variable1</variableId>
			</input>
			<coefficientSet>
				<interpolationType>class</interpolationType>
				<extrapolationType>extrapolate</extrapolationType>
				<lookupTable>
					<lookupTableRow input="0" output="0"/>
					<lookupTableRow input="10" output="1"/>
					<lookupTableRow input="150" output="2"/>
					<lookupTableRow input="250" output="3"/>
					<lookupTableRow input="350" output="4"/>
					<lookupTableRow input="450" output="5"/>
					<lookupTableRow input="550" output="6"/>
				</lookupTable>
			</coefficientSet>
			<output>
				<variableId>variable2</variableId>
			</output>
		</simple>
	</lookup>
Lookup using LookupTables.xml from RegionConfigFiles

...