Copyright: Created with EasyHelp (Tel: 0973 209667)


Function/Linear Fit - RG354225

Description

This block implements a linear approximation to a general function; it accepts a single input, x, and provides a single output, f(x).

Nine points are specified:  f(-100%), f(-75%), f(-50%), f(-25%), f(0%), f(25%), f(50%), f(75%), and f(100%).  The function block performs a linear interpolation for inputs between these points.

The nine points are persistent.

Parameters

Input	Input to the block.  Expects a value between -100% and +100%

Get Input	Returns the current value of the input:  -100% to +100%.

Get Output	Returns the current value of the output:  -100% to +100%.

-100% point	f(-100%).  Expects a value between -100% and +100%.

-75% point	f(-75%).  Expects a value between -100% and +100%.

-50% point	f(-50%).  Expects a value between -100% and +100%.

-25% point	f(-25%).  Expects a value between -100% and +100%.

0% point	f(0%).  Expects a value between -100% and +100%.

25% point	f(25%).  Expects a value between -100% and +100%.

50% point	f(50%).  Expects a value between -100% and +100%.

75% point	f(75%).  Expects a value between -100% and +100%.

100% point	f(100%).  Expects a value between -100% and +100%.

Get -100% point	Returns the current value of the f(-100%) point:  -100% to +100%.

Get -75% point	Returns the current value of the f(-75%) point:  -100% to +100%.

Get -50% point	Returns the current value of the f(-50%) point:  -100% to +100%.

Get -25% point	Returns the current value of the f(-25%) point:  -100% to +100%.

Get 0% point	Returns the current value of the f(0%) point:  -100% to +100%.

Get 25% point	Returns the current value of the f(25%) point:  -100% to +100%.

Get 50% point	Returns the current value of the f(50%) point:  -100% to +100%.

Get 75% point	Returns the current value of the f(75%) point:  -100% to +100%.

Get 100% point	Returns the current value of the f(100%) point:  -100% to +100%.


Description

This block implements a linear approximation to a general function; it accepts a single input, x, and provides a single output, f(x).

Nine points are specified:  f(-100%), f(-75%), f(-50%), f(-25%), f(0%), f(25%), f(50%), f(75%), and f(100%).  The function block performs a linear interpolation for inputs between these points.

The nine points are persistent.


Parameters

Input	Input to the block.  Expects a value between -100% and +100%

Get Input	Returns the current value of the input:  -100% to +100%.

Get Output	Returns the current value of the output:  -100% to +100%.

-100% point	f(-100%).  Expects a value between -100% and +100%.

-75% point	f(-75%).  Expects a value between -100% and +100%.

-50% point	f(-50%).  Expects a value between -100% and +100%.

-25% point	f(-25%).  Expects a value between -100% and +100%.

0% point	f(0%).  Expects a value between -100% and +100%.

25% point	f(25%).  Expects a value between -100% and +100%.

50% point	f(50%).  Expects a value between -100% and +100%.

75% point	f(75%).  Expects a value between -100% and +100%.

100% point	f(100%).  Expects a value between -100% and +100%.

Get -100% point	Returns the current value of the f(-100%) point:  -100% to +100%.

Get -75% point	Returns the current value of the f(-75%) point:  -100% to +100%.

Get -50% point	Returns the current value of the f(-50%) point:  -100% to +100%.

Get -25% point	Returns the current value of the f(-25%) point:  -100% to +100%.

Get 0% point	Returns the current value of the f(0%) point:  -100% to +100%.

Get 25% point	Returns the current value of the f(25%) point:  -100% to +100%.

Get 50% point	Returns the current value of the f(50%) point:  -100% to +100%.

Get 75% point	Returns the current value of the f(75%) point:  -100% to +100%.

Get 100% point	Returns the current value of the f(100%) point:  -100% to +100%.