net.simplace.sim.components.util.InterpolatedValueFromTable

Interpolates values from a table of x and y values.

Motivation

Sometimes functions y=f(x) are given as interpolation tables with x and y values.

Configuration, inputs

The sim component takes the tables cXValues and cYValues (DOUBLEARRAY) as well as the value iX. It outputs Y, the interpolated value at iX from the interpolation table defined by cXValues and cYValues.

If the input iValueToScale is given, then the output ScaledValue holds the value Y * iValueToScale.

Component Variables

Content TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcXValuesX-Values of the interpolation tableDOUBLEARRAY---
constantcYValuesY-Values of the interpolation tableDOUBLEARRAY---
inputiValueToScaleA value that will be multiplied by the interpolation valueDOUBLE--0.0
inputiXAt which point to interpolateDOUBLE--0.0
outScaledValueReturns input iValueToScale multiplied with the interpolated value YDOUBLE--0.0
outYInterpolated value at iXDOUBLE--0.0


See also: FSTFunctions




public class InterpolatedValueFromTable extends
net.simplace.sim.model.FWSimComponent {
// Public Constructors
public InterpolatedValueFromTable();


// Public Instance Methods
public HashMap createVariables(); // Defines
net.simplace.sim.model.FWSimComponent


Create the FWSimVariables as interface for this SimComponent

// Protected Instance Methods
protected void init(); // Defines net.simplace.sim.model.FWSimComponent

Initializes the fields by getting input and output FWSimVariables from VarMap
protected void process(); // Defines net.simplace.sim.model.FWSimComponent

Process the algorithm and write the results back to VarMap
protected FWSimComponent clone(FWSimVarMap aVarMap);
// Defines net.simplace.sim.model.FWSimComponent


creates a clone from this SimComponent for use in other threads


}



Hierarchy: java.lang.Object - net.simplace.sim.model.FWSimComponent (net.simplace.sim.util.FWSimFieldContainer) - InterpolatedValueFromTable