ixfx
    Preparing search index...

    Function fromScalar

    • Makes a scalar into a bipolar value.

      That is, input range is 0..1, output range is -1...1

      import { Bipolar } from 'https://unpkg.com/ixfx/dist/data.js';
      Bipolar.fromScalar(1); // 1
      Bipolar.fromScalar(0); // -1
      Bipolar.fromScalar(0.5); // 0

      Throws an error if scalarValue is not on 0..1 scale.

      Parameters

      • scalarValue: number

        Scalar value to convert

      Returns number

      Bipolar value on -1..1 scale