[opengm] 10/386: add interface for learnable functions
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:34:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository opengm.
commit b660f973a536e646efa7327b6d02d9b2424914ab
Author: joergkappes <kappes at math.uni-heidelberg.de>
Date: Fri May 16 17:00:23 2014 +0200
add interface for learnable functions
---
include/opengm/functions/function_properties_base.hxx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/opengm/functions/function_properties_base.hxx b/include/opengm/functions/function_properties_base.hxx
index 411dba9..2b70a77 100644
--- a/include/opengm/functions/function_properties_base.hxx
+++ b/include/opengm/functions/function_properties_base.hxx
@@ -54,6 +54,7 @@ public:
bool isTruncatedSquaredDifference() const;
bool isAbsoluteDifference() const;
bool isTruncatedAbsoluteDifference() const;
+
/// find minimum and maximum of the function in a single sweep
/// \return class holding the minimum and the maximum
@@ -132,6 +133,10 @@ public:
INDEX parameterIndex(const size_t paramNumber)const{
throw RuntimeError("Function base has no parameters,this needs to be implemented in any function type");
}
+ void setParameters(const Parameters<VALUE,INDEX>& parameters){}
+ template<class ITERATOR>
+ VALUE parameterGradient(size_t,ITERATOR) const {return 0;}
+
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git
More information about the debian-science-commits
mailing list