Package mondrian.udf
Class InverseNormalUdf
java.lang.Object
mondrian.udf.InverseNormalUdf
- All Implemented Interfaces:
UserDefinedFunction
A user-defined function which returns the inverse normal distribution value
of its argument.
This particular function is useful in Six Sigma calculations, for example,
WITH MEMBER [Measures].[Yield]
AS '([Measures].[Number of Failures] / [Measures].[Population])',
FORMAT_STRING = "0.00%"
MEMBER [Measures].[Sigma]
AS 'IIf([Measures].[Yield] <> 0,
IIf([Measures].[Yield] > 0.5,
0,
InverseNormal(1 - ([Measures].[Yield])) + 1.5), 6)',
FORMAT_STRING = "0.0000"
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.spi.UserDefinedFunction
UserDefinedFunction.Argument -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Evaluator evaluator, UserDefinedFunction.Argument[] args) Applies this function to a set of arguments, and returns a result.Returns a description of the user-defined function.getName()Returns the name with which the user-defined function will be used from within MDX expressions.Type[]Returns an array of the types of the parameters of this function.String[]Returns a list of reserved words used by this function.getReturnType(Type[] types) Returns the return-type of this function.Returns the syntactic type of the user-defined function.
-
Constructor Details
-
InverseNormalUdf
public InverseNormalUdf()
-
-
Method Details
-
getName
Description copied from interface:UserDefinedFunctionReturns the name with which the user-defined function will be used from within MDX expressions.- Specified by:
getNamein interfaceUserDefinedFunction
-
getDescription
Description copied from interface:UserDefinedFunctionReturns a description of the user-defined function.- Specified by:
getDescriptionin interfaceUserDefinedFunction
-
getSyntax
Description copied from interface:UserDefinedFunctionReturns the syntactic type of the user-defined function. UsuallySyntax.Function.- Specified by:
getSyntaxin interfaceUserDefinedFunction
-
getReturnType
Description copied from interface:UserDefinedFunctionReturns the return-type of this function.- Specified by:
getReturnTypein interfaceUserDefinedFunction- Parameters:
types- Parameter types- Returns:
- Return type
-
getParameterTypes
Description copied from interface:UserDefinedFunctionReturns an array of the types of the parameters of this function.- Specified by:
getParameterTypesin interfaceUserDefinedFunction
-
execute
Description copied from interface:UserDefinedFunctionApplies this function to a set of arguments, and returns a result.- Specified by:
executein interfaceUserDefinedFunction- Parameters:
evaluator- Evaluator containts the runtime context, in particular the current member of each dimension.args- Expressions which yield the arguments of this function. Most user-defined functions will evaluate all arguments before using them. Functions such asIIfdo not evaluate all arguments; this technique is called lazy evaluation.- Returns:
- The result value.
-
getReservedWords
Description copied from interface:UserDefinedFunctionReturns a list of reserved words used by this function. May return an empty array or null if this function does not require any reserved words.- Specified by:
getReservedWordsin interfaceUserDefinedFunction
-