working on contours
This commit is contained in:
parent
29471a7aac
commit
a8bbbe8582
3492
examples/contours.ipynb
Normal file
3492
examples/contours.ipynb
Normal file
File diff suppressed because one or more lines are too long
48
src/contours.jl
Normal file
48
src/contours.jl
Normal 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
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user