Skip to content

Commit

Permalink
more testing with 3 components on line
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Oct 1, 2018
1 parent f5a3e42 commit 963a36e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion test/ex_2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
using ApproxManifoldProducts
using Base: Test

@testset "basic linear 2D find mu and Lambdas Gaussian product test..." begin

Λ1 = 1.0
Λ2 = 0.25
Λ3 = 5/4.0

μ1 = 1.0
μ2 = 4.0
μ3 = 2.4


@testset "basic linear 2D find mu and Lambdas Gaussian product test..." begin

Lambdas = [Λ1; Λ2]
mus = [μ1; μ2]
Expand Down Expand Up @@ -42,6 +45,24 @@ end
#
# s[1,1]*u[:,2]

@testset "test with 3 components on basic Euclidean line..."

Lambdas = [Λ1; Λ2; Λ3]
mus = [μ1; μ2; μ3]

μ = get2DMu(mus, Lambdas)
Λ = get2DLambda(Lambdas)

@test abs(μ[1] - 2.0) < 1e-10

@test abs- 10/4) < 1e-10




end




#

0 comments on commit 963a36e

Please sign in to comment.