infBound¶
-
fitAlgs.boundFunc.infBound(base=0)[source]¶ Boundary excess of
infwhen over boundsParameters: base (float, optional) – The cost at the boundary. Default 0 Returns: cost – Calculates the cost of exceeding the bounday using the parameters and the boundaries, and returns the cost. Return type: function Examples
>>> cst = infBound(base = 160) >>> cst([0.5, 2], [(0, 1), (0, 5)]) 160 >>> cst([0.5, 7], [(0, 1), (0, 5)]) inf