Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre NARVOR
rtac_base
Commits
5235b681
Commit
5235b681
authored
Aug 24, 2021
by
Pierre NARVOR
Browse files
[algorithm] Added getter for data source in interpolators
parent
e701eb91
Changes
1
Show whitespace changes
Inline
Side-by-side
include/rtac_base/interpolation.h
View file @
5235b681
...
...
@@ -35,6 +35,9 @@ class Interpolator
public:
const
Vector
&
x0
()
const
;
const
Vector
&
y0
()
const
;
Vector
operator
()(
const
Vector
&
x
)
const
;
unsigned
int
size
()
const
;
...
...
@@ -122,6 +125,18 @@ Interpolator<T>::Interpolator(const Vector& x0, const Vector& y0) :
assert
(
x0_
.
size
()
==
y0_
.
size
());
}
template
<
typename
T
>
const
typename
Interpolator
<
T
>::
Vector
&
Interpolator
<
T
>::
x0
()
const
{
return
x0_
;
}
template
<
typename
T
>
const
typename
Interpolator
<
T
>::
Vector
&
Interpolator
<
T
>::
y0
()
const
{
return
y0_
;
}
/**
* Interpolate at values x.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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