File:Graham scan implementation failure.png

From HaskellWiki

Graham_scan_implementation_failure.png(480 × 480 pixels, file size: 17 KB, MIME type: image/png)

Plot of points from a failing example. Generated using:

writeFile "brokenPoints.csv"
  $ concat 
  $ [concat $ map (\(a,b) -> printf "%f %f %d\n" a b n :: String) (fun f)
        | (fun, n)  <- [id, gscan', gscan' . gscan' ] `zip` [ 0 :: Int .. ] ]

And plotted with R

xyplot(V1 ~ V2 | factor(V3),
        read.table('brokenPoints.csv', header=F),
        layout=c(NA,1), xlab='x', ylab='y', type='b' )

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current03:06, 25 July 2013Thumbnail for version as of 03:06, 25 July 2013480 × 480 (17 KB)Avo (talk | contribs)Plot of points from a failing example. Generated using: <haskell> writeFile "brokenPoints.csv" $ concat $ [concat $ map (\(a,b) -> printf "%f %f %d\n" a b n :: String) (fun f) | (fun, n) <- [id, gscan', gscan' . gscan' ] `zip` [ 0 :: Int...

There are no pages that use this file.