|
PLearn 0.1
|
The first sentence should be a BRIEF DESCRIPTION of what the class does. More...
#include <RealFunctionFromKernel.h>


Public Member Functions | |
| RealFunctionFromKernel () | |
| Default constructor. | |
| RealFunctionFromKernel (Ker the_kernel, Vec the_center) | |
| virtual real | evaluate (const Vec &x) const |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual RealFunctionFromKernel * | deepCopy (CopiesMap &copies) const |
| virtual void | build () |
| Post-constructor. | |
| virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
| Transforms a shallow copy into a deep copy. | |
Static Public Member Functions | |
| static string | _classname_ () |
| static OptionList & | _getOptionList_ () |
| static RemoteMethodMap & | _getRemoteMethodMap_ () |
| static Object * | _new_instance_for_typemap_ () |
| static bool | _isa_ (const Object *o) |
| static void | _static_initialize_ () |
| static const PPath & | declaringFile () |
Public Attributes | |
| Ker | kernel |
| ### declare public option fields (such as build options) here | |
| Vec | center |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
| static void | declareOptions (OptionList &ol) |
| Declares the class options. | |
Private Types | |
| typedef RealFunction | inherited |
Private Member Functions | |
| void | build_ () |
| This does the actual building. | |
The first sentence should be a BRIEF DESCRIPTION of what the class does.
Place the rest of the class programmer documentation here. Doxygen supports Javadoc-style comments. See http://www.doxygen.org/manual.html
Definition at line 58 of file RealFunctionFromKernel.h.
typedef RealFunction PLearn::RealFunctionFromKernel::inherited [private] |
Reimplemented from PLearn::RealFunction.
Definition at line 60 of file RealFunctionFromKernel.h.
| PLearn::RealFunctionFromKernel::RealFunctionFromKernel | ( | ) | [inline] |
Definition at line 75 of file RealFunctionFromKernel.h.
| string PLearn::RealFunctionFromKernel::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::RealFunction.
Definition at line 49 of file RealFunctionFromKernel.cc.
| OptionList & PLearn::RealFunctionFromKernel::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::RealFunction.
Definition at line 49 of file RealFunctionFromKernel.cc.
| RemoteMethodMap & PLearn::RealFunctionFromKernel::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::RealFunction.
Definition at line 49 of file RealFunctionFromKernel.cc.
Reimplemented from PLearn::RealFunction.
Definition at line 49 of file RealFunctionFromKernel.cc.
| Object * PLearn::RealFunctionFromKernel::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 49 of file RealFunctionFromKernel.cc.
| StaticInitializer RealFunctionFromKernel::_static_initializer_ & PLearn::RealFunctionFromKernel::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::RealFunction.
Definition at line 49 of file RealFunctionFromKernel.cc.
| void PLearn::RealFunctionFromKernel::build | ( | ) | [virtual] |
Post-constructor.
The normal implementation should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.
Reimplemented from PLearn::RealFunction.
Definition at line 52 of file RealFunctionFromKernel.cc.
{
inherited::build();
build_();
}
| void PLearn::RealFunctionFromKernel::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::RealFunction.
Definition at line 97 of file RealFunctionFromKernel.cc.
{}
| string PLearn::RealFunctionFromKernel::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file RealFunctionFromKernel.cc.
| void PLearn::RealFunctionFromKernel::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares the class options.
Reimplemented from PLearn::RealFunction.
Definition at line 65 of file RealFunctionFromKernel.cc.
References PLearn::OptionBase::buildoption, center, PLearn::declareOption(), and kernel.
{
// ### Declare all of this object's options here.
// ### For the "flags" of each option, you should typically specify
// ### one of OptionBase::buildoption, OptionBase::learntoption or
// ### OptionBase::tuningoption. If you don't provide one of these three,
// ### this option will be ignored when loading values from a script.
// ### You can also combine flags, for example with OptionBase::nosave:
// ### (OptionBase::buildoption | OptionBase::nosave)
declareOption(ol, "kernel", &RealFunctionFromKernel::kernel,
OptionBase::buildoption,
"The kernel to use");
declareOption(ol, "center", &RealFunctionFromKernel::center,
OptionBase::buildoption,
"The point to use as kernel center. When evaluating \n"
"this function at a point x, it will return \n"
"kernel->evaluate(center, x)");
// Now call the parent class' declareOptions
inherited::declareOptions(ol);
}

| static const PPath& PLearn::RealFunctionFromKernel::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::RealFunction.
Definition at line 85 of file RealFunctionFromKernel.h.
:
//##### Protected Options ###############################################
| RealFunctionFromKernel * PLearn::RealFunctionFromKernel::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::RealFunction.
Definition at line 49 of file RealFunctionFromKernel.cc.
Implements PLearn::RealFunction.
Definition at line 89 of file RealFunctionFromKernel.cc.
References PLearn::center(), and PLERROR.

| OptionList & PLearn::RealFunctionFromKernel::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file RealFunctionFromKernel.cc.
| OptionMap & PLearn::RealFunctionFromKernel::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file RealFunctionFromKernel.cc.
| RemoteMethodMap & PLearn::RealFunctionFromKernel::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file RealFunctionFromKernel.cc.
| void PLearn::RealFunctionFromKernel::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::RealFunction.
Definition at line 58 of file RealFunctionFromKernel.cc.
References PLearn::center(), and PLearn::deepCopyField().
{
inherited::makeDeepCopyFromShallowCopy(copies);
deepCopyField(kernel, copies);
deepCopyField(center, copies);
}

Reimplemented from PLearn::RealFunction.
Definition at line 85 of file RealFunctionFromKernel.h.
Definition at line 67 of file RealFunctionFromKernel.h.
Referenced by declareOptions().
### declare public option fields (such as build options) here
Definition at line 66 of file RealFunctionFromKernel.h.
Referenced by declareOptions().
1.7.4