corehydro
  • Examples
  • Porting Status
  • Python Reference
  • R Reference

On this page

  • link_function
    • Examples

link_function

link_function(type, *, inner=None, **parameters)

Construct a :class:Link. See :class:Link for the arguments.

Examples

>>> from corehydropy import link_function, link, link_inverse
>>> l = link_function("Log")
>>> link(l, [1, 10, 100])
array([0.        , 2.30258509, 4.60517019])
>>> link_inverse(l, [0, 1, 2])
array([1.        , 2.71828183, 7.3890561 ])
 

corehydro is an independent open-source port of the USACE-RMC Numerics and RMC-BestFit libraries. 0BSD licensed.