Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
3ced739b
Commit
3ced739b
authored
Jan 09, 2019
by
Purves, Murray
Browse files
Moved interpolation description comment to correct file
parent
0ef8a83c
Pipeline
#27279
failed with stages
in 5 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/examples/radixsnd2arl.cc
View file @
3ced739b
...
...
@@ -30,16 +30,6 @@ void addHour(struct tm *time, int hours)
*
time
=
*
localtime
(
&
date_seconds
);
}
/**
* @brief interpolateValues Interpolate/extrapolate missing values from a data
* vector Basic capability for now - linear interpolation, extrapolation assumes
* constant from ends.
* @param pressureValues Pressure vector for meteorology - requires all values
* to be present. Used for determining 'interpolation bounds' (there's
* definitely a better phrase for this)
* @param valuesToInterpolate
*/
int
main
(
int
argc
,
char
**
argv
)
{
std
::
cout
<<
"************************"
<<
std
::
endl
;
...
...
@@ -73,7 +63,7 @@ int main(int argc, char **argv)
std
::
cout
<<
"
\t
"
<<
error
<<
std
::
endl
;
}
std
::
cout
<<
std
::
endl
;
commandLine
.
printParsedLine
(
std
::
cout
);
commandLine
.
printParsedLine
(
std
::
c
*
out
);
return
-
1
;
}
...
...
radixmath/interpolate.cc
View file @
3ced739b
...
...
@@ -6,6 +6,18 @@
namespace
radix
{
/**
* @brief interpolateValues Interpolate/extrapolate missing values from a data
* vector Basic capability for now - linear interpolation, extrapolation assumes
* constant from ends.
* @param baseValues Base vector for interpolation - requires all values
* to be present. Used for determining 'interpolation bounds' (there's
* definitely a better phrase for this)
* @param valuesToInterpolate The values to interpolate
* @param circular Flag indicating whether to use circular interpolation (for
* angles in degrees)
* @param missingValue The value which indicates that the value is missing
*/
std
::
vector
<
float
>
interpolateValues
(
const
std
::
vector
<
float
>
&
baseValues
,
const
std
::
vector
<
float
>
&
valuesToInterpolate
,
bool
circular
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment