[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN irls.h
From: |
Edward Rosten |
Subject: |
[Toon-members] TooN irls.h |
Date: |
Thu, 23 Jul 2009 16:11:12 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Edward Rosten <edrosten> 09/07/23 16:11:12
Modified files:
. : irls.h
Log message:
Fix silly copy/paste error
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/irls.h?cvsroot=toon&r1=1.10&r2=1.11
Patches:
Index: irls.h
===================================================================
RCS file: /cvsroot/toon/TooN/irls.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- irls.h 16 Jul 2009 14:10:07 -0000 1.10
+++ irls.h 23 Jul 2009 16:11:12 -0000 1.11
@@ -84,15 +84,15 @@
struct RobustIII {
void set_sd(Precision x){ sd_inlier = x*x;} ///<Set the noise
standard deviation.
- T sd_inlier; ///< Inlier standard deviation squared.
+ Precision sd_inlier; ///< Inlier standard deviation squared.
/// Returns \f$w(x)\f$.
- T reweight(T x) const
+ Precision reweight(Precision x) const
{
double d = (1 + x*x/sd_inlier);
return 1/(d*d);
}
///< Returns \f$\int xw(x)dx\f$.
- T objective(T x) const
+ Precision objective(Precision x) const
{
return x*x / (2*(1 + x*x/sd_inlier));
}