Computes the sine function, using the given vector of function parameters, at the specified point.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static double ThreeParameterSine(
	DoubleVector p,
	double x
)
Visual Basic (Declaration)
Public Shared Function ThreeParameterSine ( _
	p As DoubleVector, _
	x As Double _
) As Double
Visual C++
public:
static double ThreeParameterSine(
	DoubleVector^ p, 
	double x
)

Parameters

p
Type: CenterSpace.NMath.Core..::.DoubleVector
The function parameters.
x
Type: System..::.Double
The point at which to evaluate the function.

Return Value

The value of the function evaluated at x.

Remarks

f(x) =  p0 * sin(p1*x + p2)
, where p0 is the amplitude, p1 is the angular frequency, and p2 is the phase.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the length of the parameter vector is not equal to 3.

See Also