Changeset 26337 in project


Ignore:
Timestamp:
04/02/12 05:52:04 (9 years ago)
Author:
Ivan Raikov
Message:

interp1d version history update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/interp1d

    r20190 r26337  
    1313== Documentation
    1414
    15 The {{interp1d}} library provides routines for linear and piecewise quadratic interpolation, as well as a facility for "sliding window" interpolation  over a long, or possibly infinite, sequence of data.
     15The {{interp1d}} library provides routines for linear and piecewise
     16quadratic interpolation, as well as a facility for "sliding window"
     17interpolation over a long, or possibly infinite, sequence of data.
    1618
    1719=== Procedures
     
    1921<procedure>interp1d:nearest:: XDATA * YDATA * X  -> Y</procedure>
    2022
    21 Interpolates function {{y=f(x)}} at the point {{x}} using the data point nearest to {{x}}. Arguments {{XDATA}} and {{YDATA}} are lists of numeric values that correspond to sample points of the function being interpolated. Argument {{X}} must be within the range of values contained in {{XDATA}}.
     23Interpolates function {{y=f(x)}} at the point {{x}} using the data
     24point nearest to {{x}}. Arguments {{XDATA}} and {{YDATA}} are lists of
     25numeric values that correspond to sample points of the function being
     26interpolated. Argument {{X}} must be within the range of values
     27contained in {{XDATA}}.
    2228
    2329
     
    2531<procedure>interp1d:linear:: XDATA * YDATA * X  -> Y</procedure>
    2632
    27 Interpolates function {{y=f(x)}} at the point {{x}} using the linear interpolation method. Arguments {{XDATA}} and {{YDATA}} are lists of numeric values that correspond to sample points of the function being interpolated. Argument {{X}} must be within the range of values contained in {{XDATA}}.
     33Interpolates function {{y=f(x)}} at the point {{x}} using the linear
     34interpolation method. Arguments {{XDATA}} and {{YDATA}} are lists of
     35numeric values that correspond to sample points of the function being
     36interpolated. Argument {{X}} must be within the range of values
     37contained in {{XDATA}}.
    2838
    2939
     
    3141<procedure>interp1d:piecewise-quadratic:: XDATA * YDATA * X  -> Y</procedure>
    3242
    33 Interpolates function {{y=f(x)}} at the point {{x}} using the piecewise quadratic interpolation method. Arguments {{XDATA}} and {{YDATA}} are lists of numeric values that corresponds to sample points of the function being interpolated. Argument {{X}} must be within the range of values contained in {{XDATA}}.
     43Interpolates function {{y=f(x)}} at the point {{x}} using the
     44piecewise quadratic interpolation method. Arguments {{XDATA}} and
     45{{YDATA}} are lists of numeric values that corresponds to sample
     46points of the function being interpolated. Argument {{X}} must be
     47within the range of values contained in {{XDATA}}.
    3448
    3549
     
    3751<procedure>interp1d:from-sequence:: METHOD * STEP * YDATA [* START * CAR * CDR * NULL? * DELTA-WINDOW-LEN * MAX-WINDOW-LEN] -> (LAMBDA X -> Y)</procedure>
    3852
    39 Constructs a sliding window interpolation procedure, for a given sequence {{YDATA}} that contains uniformly sampled values of a function {{y = f(x)}}, where {{X}} has an initial value of {{START}} (default 0)  and is incremented by {{STEP}} amount. The returned procedure performs interpolation using the given {{METHOD}} procedure, while the window is shifted forwards by the appropriate amount if {{X}} is outside the current window range. Backward shifting is not supported.
     53Constructs a sliding window interpolation procedure, for a given
     54sequence {{YDATA}} that contains uniformly sampled values of a
     55function {{y = f(x)}}, where {{X}} has an initial value of {{START}}
     56(default 0) and is incremented by {{STEP}} amount. The returned
     57procedure performs interpolation using the given {{METHOD}} procedure,
     58while the window is shifted forwards by the appropriate amount if
     59{{X}} is outside the current window range. Backward shifting is not
     60supported.
    4061
    4162Argument {{METHOD}} is one of the interpolation procedures above.
     
    4364Optional argument {{START}} specifies the initial (smallest) {{X}} and defaults to 0.
    4465
    45 Optional arguments {{CAR}}, {{CDR}}, {{NULL?}} are used to access {{YDATA}} and default to the standard list procedures. If the input sequence is not a list (e.g. an SRFI-40 stream), these arguments can be used to specify the appropriate accessors and predicates.
     66Optional arguments {{CAR}}, {{CDR}}, {{NULL?}} are used to access
     67{{YDATA}} and default to the standard list procedures. If the input
     68sequence is not a list (e.g. an SRFI-40 stream), these arguments can
     69be used to specify the appropriate accessors and predicates.
    4670
    4771Optional arguments {{DELTA-WINDOW-LEN}} and {{MAX-WINDOW-LEN}} specify the window increment (default 4) and maximum window size (default 128).
     
    7094=== Version history
    7195
     96; 1.12 : Eliminated dependency on easyffi
    7297; 1.11 : Documentation converted to wiki format
    7398; 1.10 : Ported to Chicken 4
     
    86111=== License
    87112
    88  Copyright 2007-2010 Ivan Raikov and the Okinawa Institute of Science and Technology
     113 Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
    89114 
    90115 This program is free software: you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.