Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alta
alta
Commits
b0441993
Commit
b0441993
authored
Sep 19, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding documentation
parent
02008951
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
sources/core/function.h
sources/core/function.h
+11
-10
sources/plugins/nonlinear_function_retroblinn/function.h
sources/plugins/nonlinear_function_retroblinn/function.h
+11
-10
No files found.
sources/core/function.h
View file @
b0441993
...
...
@@ -145,15 +145,16 @@ class nonlinear_function: public function
//! indexing.
virtual
vec
getParametersMin
()
const
;
//! \brief Obtain the derivatives of the function with respect to the
//! \brief Obtain the derivatives of the function with respect to the
//! parameters.
//
// The x input of this function is the position in the input space and
// has size dimX(), the resulting vector has the size of the parameters
// times the size of the output domain.
//
// The result vector should be orderer as res[i + dimY()*j], output
// dimension first, then parameters.
//!
//! \details
//! The \a x input of this function is the position in the
//! input space and has size dimX(), the resulting vector has the
//! size of the parameters times the size of the output domain.
//!
//! The result vector should be orderer as res[i + dimY()*j], output
//! dimension first, then parameters.
virtual
vec
parametersJacobian
(
const
vec
&
x
)
const
=
0
;
//! \brief default non_linear import. Parse the parameters in order.
...
...
@@ -194,8 +195,8 @@ class nonlinear_function: public function
setParameters
(
p
);
}
//! \brief default non_linear export. It will dump the parameters in
order
//! but won't assign names for the function nor parameters.
//! \brief default non_linear export. It will dump the parameters in
//!
order
but won't assign names for the function nor parameters.
virtual
void
save_call
(
std
::
ostream
&
out
,
const
arguments
&
args
)
const
{
if
(
!
args
.
is_defined
(
"export"
))
...
...
sources/plugins/nonlinear_function_retroblinn/function.h
View file @
b0441993
...
...
@@ -13,12 +13,11 @@
#include <core/common.h>
/*! \brief A retroblinn lobe class. It is provided for testing with the
nonlinear
* fitting algorithms.
/*! \brief A retroblinn lobe class. It is provided for testing with the
*
nonlinear
fitting algorithms.
*
* \details
* A retroblinn lobe is defined as \f$k_d + k_s |N.H|^a\f$
* \todo Finish implementation
* A retroblinn lobe is defined as \f$k_d + k_s |L.V|^a\f$
*/
class
retroblinn_function
:
public
nonlinear_function
{
...
...
@@ -29,7 +28,8 @@ class retroblinn_function : public nonlinear_function
virtual
vec
operator
()(
const
vec
&
x
)
const
;
virtual
vec
value
(
const
vec
&
x
)
const
;
//! \brief Boostrap the function by defining the diffuse term
//! \brief Boostrap the function. This initialize the lobe width
//! and the specular coefficient to one.
virtual
void
bootstrap
(
const
data
*
d
,
const
arguments
&
args
);
//! \brief Load function specific files
...
...
@@ -62,7 +62,8 @@ class retroblinn_function : public nonlinear_function
return
1
;
}
//! \brief Provide the parametrization of the input space of the function.
//! \brief Provide the parametrization of the input space of the
//! function.
virtual
params
::
input
input_parametrization
()
const
{
return
params
::
COS_TK
;
...
...
@@ -84,10 +85,10 @@ class retroblinn_function : public nonlinear_function
}
//! \brief Export function
virtual
void
save_call
(
std
::
ostream
&
out
,
const
arguments
&
args
)
const
;
virtual
void
save_body
(
std
::
ostream
&
out
,
const
arguments
&
args
)
const
;
virtual
void
save_call
(
std
::
ostream
&
out
,
const
arguments
&
args
)
const
;
virtual
void
save_body
(
std
::
ostream
&
out
,
const
arguments
&
args
)
const
;
private:
// data
...
...
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