SignalMath.GenerateSincPulse Method

Definition

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

Overload List

GenerateSincPulse(Double, Double, Double, Span<Double>)Generates a sinc pulse signal.
GenerateSincPulse(Int32, Double, Double, Double) Generates a sinc pulse signal and returns it as a vector.
GenerateSincPulse(Vector<Double>, Double, Double, Double) Generates a sinc pulse signal at explicit x values and returns it as a vector.
GenerateSincPulse(Double, Double, Double, Double, Span<Double>) Generates a sinc pulse signal with DC offset.
GenerateSincPulse(Int32, Double, Double, Double, Double) Generates a sinc pulse signal with DC offset and returns it as a vector.
GenerateSincPulse(ReadOnlySpan<Double>, Double, Double, Double, Span<Double>) Generates a sinc pulse signal at explicit x values.
GenerateSincPulse(Vector<Double>, Double, Double, Double, Double) Generates a sinc pulse signal with DC offset at explicit x values and returns it as a vector.
GenerateSincPulse(ReadOnlySpan<Double>, Double, Double, Double, Double, Span<Double>) Generates a sinc pulse signal with DC offset at explicit x values.

GenerateSincPulse(Double, Double, Double, Span<Double>)

Generates a sinc pulse signal.
C#
public static void GenerateSincPulse(
	double amplitude,
	double cutoffFrequency,
	double center,
	Span<double> destination
)

Parameters

amplitude  Double
 
cutoffFrequency  Double
 
center  Double
 
destination  Span<Double>
 

Remarks

y[n] = A · 2fc · sinc(2fc(n - center)) where sinc(x) = sin(πx)/(πx).

GenerateSincPulse(Int32, Double, Double, Double)

Generates a sinc pulse signal and returns it as a vector.
C#
public static Vector<double> GenerateSincPulse(
	int count,
	double amplitude,
	double cutoffFrequency,
	double center
)

Parameters

count  Int32
The number of samples to generate.
amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.

Return Value

Vector<Double>
A vector containing the generated signal.

GenerateSincPulse(Vector<Double>, Double, Double, Double)

Generates a sinc pulse signal at explicit x values and returns it as a vector.
C#
public static Vector<double> GenerateSincPulse(
	Vector<double> x,
	double amplitude,
	double cutoffFrequency,
	double center
)

Parameters

x  Vector<Double>
The x values at which to evaluate the signal.
amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.

Return Value

Vector<Double>
A vector containing the generated signal.

GenerateSincPulse(Double, Double, Double, Double, Span<Double>)

Generates a sinc pulse signal with DC offset.
C#
public static void GenerateSincPulse(
	double amplitude,
	double cutoffFrequency,
	double center,
	double offset,
	Span<double> destination
)

Parameters

amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.
offset  Double
The DC offset to add to the signal.
destination  Span<Double>
The destination span to write the generated signal.

GenerateSincPulse(Int32, Double, Double, Double, Double)

Generates a sinc pulse signal with DC offset and returns it as a vector.
C#
public static Vector<double> GenerateSincPulse(
	int count,
	double amplitude,
	double cutoffFrequency,
	double center,
	double offset
)

Parameters

count  Int32
The number of samples to generate.
amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.
offset  Double
The DC offset to add to the signal.

Return Value

Vector<Double>
A vector containing the generated signal.

GenerateSincPulse(ReadOnlySpan<Double>, Double, Double, Double, Span<Double>)

Generates a sinc pulse signal at explicit x values.
C#
public static void GenerateSincPulse(
	ReadOnlySpan<double> x,
	double amplitude,
	double cutoffFrequency,
	double center,
	Span<double> destination
)

Parameters

x  ReadOnlySpan<Double>
The x values at which to evaluate the signal.
amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.
destination  Span<Double>
The destination span to write the generated signal.

GenerateSincPulse(Vector<Double>, Double, Double, Double, Double)

Generates a sinc pulse signal with DC offset at explicit x values and returns it as a vector.
C#
public static Vector<double> GenerateSincPulse(
	Vector<double> x,
	double amplitude,
	double cutoffFrequency,
	double center,
	double offset
)

Parameters

x  Vector<Double>
The x values at which to evaluate the signal.
amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.
offset  Double
The DC offset to add to the signal.

Return Value

Vector<Double>
A vector containing the generated signal.

GenerateSincPulse(ReadOnlySpan<Double>, Double, Double, Double, Double, Span<Double>)

Generates a sinc pulse signal with DC offset at explicit x values.
C#
public static void GenerateSincPulse(
	ReadOnlySpan<double> x,
	double amplitude,
	double cutoffFrequency,
	double center,
	double offset,
	Span<double> destination
)

Parameters

x  ReadOnlySpan<Double>
The x values at which to evaluate the signal.
amplitude  Double
The amplitude of the signal.
cutoffFrequency  Double
The cutoff frequency of the sinc pulse.
center  Double
The center position of the pulse.
offset  Double
The DC offset to add to the signal.
destination  Span<Double>
The destination span to write the generated signal.

See Also