Click or drag to resize

RMathInFractionOfUnorderedIntervalCC Method

If x is inside the interval [leftValue, rightValue] or [rightValue, leftValue], then this function returns a value in the range [0,1] designating the (linear) position inside that interval. I.e. if rightValue > leftValue, the return value would be (x-leftValue)/(rightValue-leftValue).

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double? InFractionOfUnorderedIntervalCC(
	this double x,
	double leftValue,
	double rightValue
)

Parameters

x  Double
The x value.
leftValue  Double
The left value of the interval, might be less than or greater than rightValue.
rightValue  Double
The right value of the interval, might be less than or greater han leftValue.

Return Value

NullableDouble

[Missing <returns> documentation for "M:Altaxo.Calc.RMath.InFractionOfUnorderedIntervalCC(System.Double,System.Double,System.Double)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also