working on contours

This commit is contained in:
Thomas Breloff 2015-10-08 00:49:30 -04:00
parent 29471a7aac
commit a8bbbe8582
2 changed files with 3540 additions and 0 deletions

3492
examples/contours.ipynb Normal file

File diff suppressed because one or more lines are too long

48
src/contours.jl Normal file
View File

@ -0,0 +1,48 @@
# immutable Vertex
# x::Float64
# y::Float64
# z::Float64
# end
# immutable Edge
# v::Vertex
# u::Vertex
# end
# # ----------------------------------------------------------
# # one rectangle's z-values and the center vertex
# # z is ordered: topleft, topright, bottomright, bottomleft
# immutable GridRect
# z::Vector{Float64}
# center::Vertex
# data::Vector{Vertex}
# end
# type Grid
# xs::Vector{Float64}
# ys::Vector{Float64}
# rects::Matrix{GridRect}
# end
# function splitDataEvenly(v::AbstractVector{Float64}, n::Int)
# vs = sort(v)
# end
# # the goal here is to create the vertical and horizontal partitions
# # which define the grid, so that the data is somewhat evenly split
# function bucketData(x, y, z)
# end
# function buildGrid(x, y, z)
# # create
# end