31 |
|
/* Resize interpolation array (caller must assign any new values) */ |
32 |
|
extern INTERP2 *interp2_realloc(INTERP2 *ip, int nsamps); |
33 |
|
|
34 |
+ |
/* Set minimum distance under which samples will start to merge */ |
35 |
+ |
extern void interp2_spacing(INTERP2 *ip, double mind); |
36 |
+ |
|
37 |
+ |
/* Modify smoothing parameter by the given factor */ |
38 |
+ |
extern void interp2_smooth(INTERP2 *ip, double sf); |
39 |
+ |
|
40 |
|
/* Assign full set of normalized weights to interpolate the given location */ |
41 |
|
extern int interp2_weights(float wtv[], INTERP2 *ip, double x, double y); |
42 |
|
|
59 |
|
* get the most important N samples for the specified location. |
60 |
|
* The weights (and indexes in the case of interp2_topsamp) |
61 |
|
* are then used as coefficients for corresponding sample values |
62 |
< |
* in a vector sum together that interpolates the function at that |
63 |
< |
* location. Between the initial allocation call and the first |
64 |
< |
* weight evaluation, the dmin member may be adjusted to |
65 |
< |
* the distance under which samples will start to merge. If this |
66 |
< |
* parameter is later changed, interp2_analyze() should be called |
67 |
< |
* to recompute the interpolant. |
68 |
< |
* The smf member sets the smoothing factor for interpolation. |
69 |
< |
* The default setting of NI2DSMF produces near-optimal |
70 |
< |
* interpolation when well-separated sample values are known |
71 |
< |
* precisely. If a greater degree of mixing is desired, this |
72 |
< |
* paremter may be increased and it will affect the next call |
73 |
< |
* to interp2_weights() or interp2_topsamp(). |
62 |
> |
* in a vector sum that interpolates the function at that |
63 |
> |
* location. |
64 |
> |
* The minimum distance between sample positions defaults to 1.0. |
65 |
> |
* Values spaced closer than this will be merged (averaged). The |
66 |
> |
* interp2_spacing() call may be used to alter this member, |
67 |
> |
* causing the interpolant to be recalculated during the |
68 |
> |
* next call to either of the sampling functions. |
69 |
> |
* The default smoothing factor NI2DSMF provides near-optimal |
70 |
> |
* interpolation when well-separated values are known |
71 |
> |
* precisely. Increase this setting by a factor > 1.0 |
72 |
> |
* with the interp2_smooth() call if greater mixing is desired. |
73 |
> |
* A call of interp2_smooth(ip,0.0) resets to the minimum |
74 |
> |
* default. It is not possible to "sharpen" the data. |
75 |
|
**************************************************************/ |
76 |
|
|
77 |
|
#ifdef __cplusplus |