g1(z, model, 1, 2, fixedK);
time("GenericProjectionFactor: ", g1, values);
- // BADFactor
+ // ExpressionFactor
// Oct 3, 2014, Macbook Air
// 16.0 musecs/call
- BADFactor g2(model, z,
+ ExpressionFactor g2(model, z,
uncalibrate(Cal3_S2_(*fixedK), project(transform_to(x, p))));
time("Bin(Cnst,Un(Bin(Leaf,Leaf))): ", g2, values);
- // BADFactor, optimized
+ // ExpressionFactor, optimized
// Oct 3, 2014, Macbook Air
// 9.0 musecs/call
typedef PinholeCamera Camera;
typedef Expression Camera_;
- BADFactor g3(model, z, Point2_(myProject, x, p));
+ ExpressionFactor g3(model, z, Point2_(myProject, x, p));
time("Binary(Leaf,Leaf) : ", g3, values);
return 0;
}
diff --git a/gtsam_unstable/timing/timeOneCameraExpression.cpp b/gtsam_unstable/timing/timeOneCameraExpression.cpp
index 61cb51bfd..8a1fb5b1b 100644
--- a/gtsam_unstable/timing/timeOneCameraExpression.cpp
+++ b/gtsam_unstable/timing/timeOneCameraExpression.cpp
@@ -17,7 +17,7 @@
*/
#include
-#include
+#include
#include
#include
@@ -55,14 +55,14 @@ int main() {
values.insert(2, Point3(0, 0, 1));
values.insert(3, Cal3_S2());
- // BADFactor
+ // ExpressionFactor
// Oct 3, 2014, Macbook Air
// 20.3 musecs/call
//#define TERNARY
#ifdef TERNARY
- BADFactor f(model, z, project3(x, p, K));
+ ExpressionFactor f(model, z, project3(x, p, K));
#else
- BADFactor f(model, z, uncalibrate(K, project(transform_to(x, p))));
+ ExpressionFactor f(model, z, uncalibrate(K, project(transform_to(x, p))));
#endif
time(f, values);