Signal Math.Generate Step Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
Overload List
| Generate | Generates a step (Heaviside) signal. |
| Generate | Generates a step signal and returns it as a vector. |
| Generate | Generates a step signal with DC offset. |
| Generate | Generates a step signal with DC offset and returns it as a vector. |
GenerateStep(Double, Int32, Span<Double>)
Generates a step (Heaviside) signal.
public static void GenerateStep(
double amplitude,
int index,
Span<double> destination
)Parameters
Remarks
y[n] = 0 for n < index, A for n ≥ index.
GenerateStep(Int32, Double, Int32)
Generates a step signal and returns it as a vector.
public static Vector<double> GenerateStep(
int count,
double amplitude,
int index
)Parameters
- count Int32
- The number of samples to generate.
- amplitude Double
- The amplitude of the signal.
- index Int32
- The index at which the impulse/step occurs.
Return Value
Vector<Double>A vector containing the generated signal.
GenerateStep(Double, Int32, Double, Span<Double>)
Generates a step signal with DC offset.
public static void GenerateStep(
double amplitude,
int index,
double offset,
Span<double> destination
)Parameters
GenerateStep(Int32, Double, Int32, Double)
Generates a step signal with DC offset and returns it as a vector.
public static Vector<double> GenerateStep(
int count,
double amplitude,
int index,
double offset
)Parameters
- count Int32
- The number of samples to generate.
- amplitude Double
- The amplitude of the signal.
- index Int32
- The index at which the impulse/step occurs.
- offset Double
- The DC offset to add to the signal.
Return Value
Vector<Double>A vector containing the generated signal.