Skip to content

Instantly share code, notes, and snippets.

@mschauer
Created June 30, 2017 13:54
Show Gist options
  • Select an option

  • Save mschauer/b3c3727021b476d49a0302acf062b030 to your computer and use it in GitHub Desktop.

Select an option

Save mschauer/b3c3727021b476d49a0302acf062b030 to your computer and use it in GitHub Desktop.
Ellipsis notation
iff --git a/src/Bridge.jl b/src/Bridge.jl
index 0653f9e..a633742 100644
--- a/src/Bridge.jl
+++ b/src/Bridge.jl
@@ -11,6 +11,7 @@ export thetamethod, thetamethod!, thetainnovations!, thetainnovations, heun, heu
export ullikelihood, ullikelihoodtrapez, uinnovations!, ubridge
using Distributions
+using EllipsisNotation
import Base.rand
import Distributions: sample, sample!
using StaticArrays
@@ -24,7 +25,7 @@ include("gaussian.jl")
include("types.jl")
include("cspline.jl")
include("wiener.jl")
-include("ellipse.jl")
+#include("ellipse.jl")
include("euler.jl")
include("diffusion.jl")
include("guip.jl")
using Bridge
using Base.Test
brown1(s, t, n) = sample(linspace(s, t, n), Wiener{Float64}())
function f(n)
W = brown1(0.,1.,1000)
X = copy(W)
s = 0.
for i in 1:n
X.yy .= 0
s += Bridge.euler!(X, 0.,W, WienerBridge(2., 1.)).yy[end]
end
s
end
@time f(1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment