Linear Regression Inference
The Linear Regression Inference function block calculates the linear combination of the inputs (Input 01 .. Input 0n) with the coefficients (Weights 00.. Weights 0n).
The parameters Weights 00 to Weights 0n can either be set manually or automatically via a file generated by the Linear Regression Fitting function block by dragging / dropping onto the parameter field. Typically, the Linear Regression Fitting function block is first used to fit the weights for the regression of a target variable. Then, using the Linear Regression Inference function block and the fitted weights, the target variable can be predicted based on the input variables.
Optionally, a Boolean signal can be selected for the Enable Execution input so that the algorithm is only active if the value of the selected signal is TRUE.
Configuration options
- Num Channels: The number of channels that are correlated with the reference signal. This can be set via Add/Remove Channel
- Weights00 .. Weights 0n: Specifies the coefficients that determine the linear combination to be calculated.
Output values
- Result: Specifies the value calculated from the linear combination.
Standard HMI Controls
For the Linear Regression Inference algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The Linear Regression Control visualizes the inputs and the calculated regression line. The buttons can be used to select the input channel to be displayed on the x axis. The y axis shows the target values of the regression. A new point is outlined in red, old points gradually fade.
2. The Table Control or Multivalue Control visualizes all output values: MSE, result, output coefficients.
Alternatively, customer-specific HMI controls can be mapped in the Linear Regression Inference algorithm using the Mapping Wizard.