|
SpecialSign Method
|
Returns a with the sign of b.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static double Sign(
double a,
double b
)
Public Shared Function Sign (
a As Double,
b As Double
) As Double
Request Example
View SourceParameters
- a
- Type: SystemDouble
- b
- Type: SystemDouble
Return Value
Type:
DoubleIf B > 0 then the result is ABS(A), else it is -ABS(A).
Remarks
This is a port of the sign transfer function from EISPACK,
and is is equivalent to C++'s std::copysign function.
See Also