void LogRamp(TVec RampVec, Double StartPower, Double StopPower)
Compute a logarithmic ramp.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | RampVec | TVec | source TVec |
| 2 | StartPower | Double | scalar |
| 3 | StopPower | Double | scalar |
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");
}