public class InverseNormalUdf extends Object implements UserDefinedFunction
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"
UserDefinedFunction.Argument| Constructor and Description |
|---|
InverseNormalUdf() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Evaluator evaluator,
UserDefinedFunction.Argument[] args)
Applies this function to a set of arguments, and returns a result.
|
String |
getDescription()
Returns a description of the user-defined function.
|
String |
getName()
Returns the name with which the user-defined function will be used
from within MDX expressions.
|
Type[] |
getParameterTypes()
Returns an array of the types of the parameters of this function.
|
String[] |
getReservedWords()
Returns a list of reserved words used by this function.
|
Type |
getReturnType(Type[] types)
Returns the return-type of this function.
|
Syntax |
getSyntax()
Returns the syntactic type of the user-defined function.
|
public String getName()
UserDefinedFunctiongetName in interface UserDefinedFunctionpublic String getDescription()
UserDefinedFunctiongetDescription in interface UserDefinedFunctionpublic Syntax getSyntax()
UserDefinedFunctionSyntax.Function.getSyntax in interface UserDefinedFunctionpublic Type getReturnType(Type[] types)
UserDefinedFunctiongetReturnType in interface UserDefinedFunctiontypes - Parameter typespublic Type[] getParameterTypes()
UserDefinedFunctiongetParameterTypes in interface UserDefinedFunctionpublic Object execute(Evaluator evaluator, UserDefinedFunction.Argument[] args)
UserDefinedFunctionexecute in interface UserDefinedFunctionevaluator - 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 as IIf do not evaluate all
arguments; this technique is called lazy evaluation.public String[] getReservedWords()
UserDefinedFunctiongetReservedWords in interface UserDefinedFunctionCopyright © 2019 Hitachi Vantara. All rights reserved.