cinterp
(New page: category:NEEDS) |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | [[category: | + | {{DavinciWiki_Function| |
+ | Point interpolation algorithm which can be used to resample data to a new set of x values using cubic spline interpolation. | ||
+ | |||
+ | Same as [[interp|interp()]]. | ||
+ | |||
+ | NOTE: The X value must be monotonically increasing. Or more simply, the next number must be larger than the previous number in an array. | ||
+ | | | ||
+ | Arguments: An X and Y numerical array pair and a new X numerical array. | ||
+ | |||
+ | Return Value: A numerical array of Y values which is resampled to the new X numerical array | ||
+ | | | ||
+ | [[Syntax]]: interp(y1 = VAL, x1 = VAL, x2 = VAL [,ignore = VAL] ) | ||
+ | |||
+ | y1 - a set of Y values that correspond to the original or from X values | ||
+ | x1 - a set of X values that correspond to the object Y values | ||
+ | x2 - the new set of X values which will be the resampling source data | ||
+ | ignore - ignore value | ||
+ | | | ||
+ | dv> original | ||
+ | struct, 2 elements | ||
+ | data: 1x1x1000 array of float, bsq format [4,000 bytes] | ||
+ | xaxis: 1x1x1000 array of float, bsq format [4,000 bytes] | ||
+ | |||
+ | dv> new_xaxis | ||
+ | 1x1x50 array of float, bsq format [200 bytes] | ||
+ | |||
+ | dv> interpolated_data = cinterp(original.data, original.xaxis, new_xaxis) | ||
+ | 1x1x50 array of float, bsq format [200 bytes] | ||
+ | | | ||
+ | [[Image:interp.png|800px]] | ||
+ | | | ||
+ | | | ||
+ | *[[interp2d]] | ||
+ | *[[clone]] | ||
+ | *[[interp]] | ||
+ | *[[create]] | ||
+ | *[[commonx]] | ||
+ | | | ||
+ | | | ||
+ | 1.65 | ||
+ | | | ||
+ | }} | ||
+ | [[category:Functions]] | ||
+ | [[category:Davinci Core]] | ||
+ | [[category:General Science]] |
Latest revision as of 13:09, 22 February 2008
Contents: Description, Arguments, Usage, Examples, Images, Related Functions Supported Under Version: > 1.65 Current Davinci Version: 2.27 64-bit Safe: No
Description Point interpolation algorithm which can be used to resample data to a new set of x values using cubic spline interpolation. Same as interp(). NOTE: The X value must be monotonically increasing. Or more simply, the next number must be larger than the previous number in an array.
Arguments and Return Values Arguments: An X and Y numerical array pair and a new X numerical array. Return Value: A numerical array of Y values which is resampled to the new X numerical array
Usage Syntax: interp(y1 = VAL, x1 = VAL, x2 = VAL [,ignore = VAL] ) y1 - a set of Y values that correspond to the original or from X values x1 - a set of X values that correspond to the object Y values x2 - the new set of X values which will be the resampling source data ignore - ignore value
Examples dv> original struct, 2 elements data: 1x1x1000 array of float, bsq format [4,000 bytes] xaxis: 1x1x1000 array of float, bsq format [4,000 bytes] dv> new_xaxis 1x1x50 array of float, bsq format [200 bytes] dv> interpolated_data = cinterp(original.data, original.xaxis, new_xaxis) 1x1x50 array of float, bsq format [200 bytes]
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 02-22-2008 |