solveOrNull

fun solveOrNull(probabilities: DoubleArray, z: DoubleArray, numTerms: Int, checker: MetalogFeasibilityChecker = MetalogFeasibilityChecker.defaultChecker): DoubleArray?(source)

Coefficients that fit the response as closely as the absolute-deviation objective allows while defining a strictly increasing quantile function, or null when no such fit was found.

Parameters

probabilities

the cumulative probabilities of the data points

z

the response, already mapped into the metalog's fitting space

numTerms

how many metalog terms to fit

checker

the feasibility checker whose grid the constraints are built on and whose verdict the solution must satisfy