SignalMath.GenerateStep Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0

Overload List

GenerateStep(Double, Int32, Span<Double>) Generates a step (Heaviside) signal.
GenerateStep(Int32, Double, Int32) Generates a step signal and returns it as a vector.
GenerateStep(Double, Int32, Double, Span<Double>) Generates a step signal with DC offset.
GenerateStep(Int32, Double, Int32, Double) Generates a step signal with DC offset and returns it as a vector.

GenerateStep(Double, Int32, Span<Double>)

Generates a step (Heaviside) signal.
C#
public static void GenerateStep(
	double amplitude,
	int index,
	Span<double> destination
)

Parameters

amplitude  Double
The amplitude of the signal.
index  Int32
The index at which the impulse/step occurs.
destination  Span<Double>
The destination span to write the generated signal.

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.
C#
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.
C#
public static void GenerateStep(
	double amplitude,
	int index,
	double offset,
	Span<double> destination
)

Parameters

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.
destination  Span<Double>
The destination span to write the generated signal.

GenerateStep(Int32, Double, Int32, Double)

Generates a step signal with DC offset and returns it as a vector.
C#
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.

See Also