From 4c6b7395c26e195817a56a7a0db41cb0b999050e Mon Sep 17 00:00:00 2001 From: dehann Date: Wed, 8 Aug 2018 09:46:02 -0400 Subject: [PATCH] improve testing and bugfix --- src/DynPose2D.jl | 28 ++++++++++++++++++++++++++-- test/testDynPose2D.jl | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/src/DynPose2D.jl b/src/DynPose2D.jl index f9fb7a67..73404348 100644 --- a/src/DynPose2D.jl +++ b/src/DynPose2D.jl @@ -88,8 +88,28 @@ end +## Compare functions + +function compare(a::MvNormal, b::MvNormal; tol::Float64=1e-10)::Bool + TP = true + TP = TP && norm(a.μ - b.μ)