SignalUtils.LogRamp Method

void LogRamp(TVec RampVec, Double StartPower, Double StopPower)

Compute a logarithmic ramp.

#NameTypeDescription
1RampVecTVecsource TVec
2StartPowerDoublescalar
3StopPowerDoublescalar

Result: stored in self (calling object)

Remarks:

Fills RampVec vector with (base 10) logarithmic scale values from StartPower to StopPower. The number of values returned is defined with RampVec.Length.

Examples
using Dew.Math;
    using Dew.Math.Editors;
    using Dew.Math.Units;
    using Dew.Signal;
    using Dew.Signal.Units;
    using Dew.Math.Tee;
    using Dew.Signal.Tee;

    private void button1_Click(object sender, EventArgs e)
    {
        Vector RampVec = new Vector(10);

        SignalUtils.LogRamp(RampVec,-1,1);
//       RampVec = [0.1     0.1668 0.2782 0.4641 0.7742
//                  1.2915  2.1544 3.5938 5.9948     10]
    MtxVecEdit.ViewValues(RampVec,"Logarithmic scale");
    }