Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
ndcurves
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loco-3d
ndcurves
Commits
b726eeaf
Commit
b726eeaf
authored
4 years ago
by
Jason Chemin
Browse files
Options
Downloads
Patches
Plain Diff
Edit docstring in curve_abc.h
parent
5fa849d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/curves/curve_abc.h
+5
-5
5 additions, 5 deletions
include/curves/curve_abc.h
with
5 additions
and
5 deletions
include/curves/curve_abc.h
+
5
−
5
View file @
b726eeaf
...
...
@@ -71,7 +71,7 @@ struct curve_abc : std::unary_function<Time, Point>, public serialization::Seria
* @param other the other curve to check
* @param order the order up to which the derivatives of the curves are checked for equality
* @param prec the precision treshold, default Eigen::NumTraits<Numeric>::dummy_precision()
* @return true i
s
the two curves are approximately equal
s
* @return true i
f
the two curves are approximately equal
*/
bool
isEquivalent
(
const
curve_t
*
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
(),
const
size_t
order
=
5
)
const
{
...
...
@@ -89,7 +89,7 @@ struct curve_abc : std::unary_function<Time, Point>, public serialization::Seria
}
t
+=
inc
;
}
// check if the derivatives are equal
s
// check if the derivatives are equal
for
(
size_t
n
=
1
;
n
<=
order
;
++
n
)
{
t
=
min
();
while
(
t
<=
max
())
{
...
...
@@ -103,12 +103,12 @@ struct curve_abc : std::unary_function<Time, Point>, public serialization::Seria
}
/**
* @brief isApprox check if other and *this are approximately equal
s
given a precision treshold
* Only two curves of the same class can be approximately equal
s
,
* @brief isApprox check if other and *this are approximately equal given a precision treshold
* Only two curves of the same class can be approximately equal,
* for comparison between different type of curves see isEquivalent.
* @param other the other curve to check
* @param prec the precision treshold, default Eigen::NumTraits<Numeric>::dummy_precision()
* @return true i
s
the two curves are approximately equal
s
* @return true i
f
the two curves are approximately equal
*/
virtual
bool
isApprox
(
const
curve_t
*
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment