Link Search Menu Expand Document

Multiply Scaling

Jul 19 2024 at 12:00 AM

  1. Overview
  2. Installation
  3. Example Options File
  4. Property Details

Overview

This function multiplies the value.

\[V_{current} = V_{raw}\cdot M\]

Installation

The required NuGet Package for this function is: IoTnxt.Raptor.TransformManager

    .AddRaptorTransformManager("TransformSets", (services, configuration, builder) =>
    {
        builder.AddDefaultTransformationFunctions(services);
    })

Example Options File

{
  "TransformSets": {
    "Scale": {
      "F1":  {
        "Enabled": true,
        "FunctionType": "MultiplyScaling",
        "ScalingFactor": 0.01
      }
    }
  } 
}

Property Details

Property NameDescription
FunctionTypeThe value for this function is “MultiplyScaling”.
EnabledSets whether this Transform Function is enabled. Defaults to true.
ScalingFactorA positive or negative double by which the Raw value will be multiplied. A value of zero is invalid.