Function resample

  • Resample a diagram so that it has n points

    Parameters

    • n: number

      number of points

    Returns modifierFunction

    function that modifies a diagram