@explorable-viz/fluid 0.0.23 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.spago/aff/v7.0.0/.editorconfig +13 -0
- package/.spago/aff/v7.0.0/.eslintrc.json +28 -0
- package/.spago/aff/v7.0.0/.gitignore +14 -0
- package/.spago/aff/v7.0.0/.tidyrc.json +10 -0
- package/.spago/affjax/v13.0.0/.editorconfig +13 -0
- package/.spago/affjax/v13.0.0/.eslintrc.json +28 -0
- package/.spago/affjax/v13.0.0/.gitignore +14 -0
- package/.spago/affjax/v13.0.0/.tidyrc.json +10 -0
- package/.spago/affjax-node/v1.0.0/.editorconfig +13 -0
- package/.spago/affjax-node/v1.0.0/.eslintrc.json +30 -0
- package/.spago/affjax-node/v1.0.0/.gitignore +13 -0
- package/.spago/affjax-web/v1.0.0/.editorconfig +13 -0
- package/.spago/affjax-web/v1.0.0/.eslintrc.json +30 -0
- package/.spago/affjax-web/v1.0.0/.gitignore +14 -0
- package/.spago/affjax-web/v1.0.0/.tidyrc.json +10 -0
- package/.spago/argonaut/v9.0.0/.editorconfig +13 -0
- package/.spago/argonaut/v9.0.0/.gitignore +9 -0
- package/.spago/argonaut/v9.0.0/.tidyrc.json +10 -0
- package/.spago/argonaut-codecs/v9.0.0/.editorconfig +13 -0
- package/.spago/argonaut-codecs/v9.0.0/.gitignore +9 -0
- package/.spago/argonaut-codecs/v9.0.0/.tidyrc.json +10 -0
- package/.spago/argonaut-core/v7.0.0/.editorconfig +13 -0
- package/.spago/argonaut-core/v7.0.0/.eslintrc.json +29 -0
- package/.spago/argonaut-core/v7.0.0/.gitignore +14 -0
- package/.spago/argonaut-core/v7.0.0/.tidyrc.json +10 -0
- package/.spago/argonaut-traversals/v10.0.0/.editorconfig +13 -0
- package/.spago/argonaut-traversals/v10.0.0/.gitignore +9 -0
- package/.spago/argonaut-traversals/v10.0.0/.tidyrc.json +10 -0
- package/.spago/arraybuffer-types/v3.0.2/.editorconfig +13 -0
- package/.spago/arraybuffer-types/v3.0.2/.gitignore +9 -0
- package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +10 -0
- package/.spago/arrays/v7.0.0/.eslintrc.json +26 -0
- package/.spago/arrays/v7.0.0/.gitignore +9 -0
- package/.spago/assert/v6.0.0/.eslintrc.json +26 -0
- package/.spago/assert/v6.0.0/.gitignore +8 -0
- package/.spago/avar/v5.0.0/.editorconfig +13 -0
- package/.spago/avar/v5.0.0/.eslintrc.json +29 -0
- package/.spago/avar/v5.0.0/.gitignore +14 -0
- package/.spago/avar/v5.0.0/.tidyrc.json +10 -0
- package/.spago/bifunctors/v6.0.0/.gitignore +7 -0
- package/.spago/catenable-lists/v7.0.0/.gitignore +7 -0
- package/.spago/console/v6.0.0/.eslintrc.json +30 -0
- package/.spago/console/v6.0.0/.gitignore +9 -0
- package/.spago/const/v6.0.0/.gitignore +7 -0
- package/.spago/contravariant/v6.0.0/.gitignore +7 -0
- package/.spago/control/v6.0.0/.gitignore +7 -0
- package/.spago/datetime/v6.1.0/.eslintrc.json +26 -0
- package/.spago/datetime/v6.1.0/.gitignore +8 -0
- package/.spago/debug/v6.0.0/.eslintrc.json +36 -0
- package/.spago/debug/v6.0.0/.gitignore +8 -0
- package/.spago/distributive/v6.0.0/.gitignore +7 -0
- package/.spago/effect/v4.0.0/.eslintrc.json +26 -0
- package/.spago/effect/v4.0.0/.gitignore +8 -0
- package/.spago/either/v6.1.0/.gitignore +7 -0
- package/.spago/enums/v6.0.0/.gitignore +7 -0
- package/.spago/exceptions/v6.0.0/.eslintrc.json +26 -0
- package/.spago/exceptions/v6.0.0/.gitignore +8 -0
- package/.spago/exists/v6.0.0/.gitignore +7 -0
- package/.spago/filterable/v5.0.0/.gitignore +11 -0
- package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +26 -0
- package/.spago/foldable-traversable/v6.0.0/.gitignore +8 -0
- package/.spago/foreign/v7.0.0/.eslintrc.json +26 -0
- package/.spago/foreign/v7.0.0/.gitignore +8 -0
- package/.spago/foreign-object/v4.0.0/.eslintrc.json +26 -0
- package/.spago/foreign-object/v4.0.0/.gitignore +8 -0
- package/.spago/fork/v6.0.0/.editorconfig +13 -0
- package/.spago/fork/v6.0.0/.gitignore +9 -0
- package/.spago/fork/v6.0.0/.tidyrc.json +10 -0
- package/.spago/form-urlencoded/v7.0.0/.editorconfig +13 -0
- package/.spago/form-urlencoded/v7.0.0/.gitignore +9 -0
- package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +10 -0
- package/.spago/free/v7.0.0/.gitignore +8 -0
- package/.spago/functions/v6.0.0/.eslintrc.json +26 -0
- package/.spago/functions/v6.0.0/.gitignore +8 -0
- package/.spago/functors/v5.0.0/.gitignore +7 -0
- package/.spago/gen/v4.0.0/.gitignore +8 -0
- package/.spago/graphs/v8.0.0/.gitignore +7 -0
- package/.spago/http-methods/v6.0.0/.editorconfig +13 -0
- package/.spago/http-methods/v6.0.0/.gitignore +9 -0
- package/.spago/http-methods/v6.0.0/.tidyrc.json +10 -0
- package/.spago/identity/v6.0.0/.gitignore +7 -0
- package/.spago/integers/v6.0.0/.eslintrc.json +26 -0
- package/.spago/integers/v6.0.0/.gitignore +8 -0
- package/.spago/invariant/v6.0.0/.gitignore +7 -0
- package/.spago/js-date/v8.0.0/.editorconfig +13 -0
- package/.spago/js-date/v8.0.0/.eslintrc.json +29 -0
- package/.spago/js-date/v8.0.0/.gitignore +14 -0
- package/.spago/js-date/v8.0.0/.tidyrc.json +10 -0
- package/.spago/js-uri/v3.0.0/.eslintrc.json +30 -0
- package/.spago/js-uri/v3.0.0/.gitignore +14 -0
- package/.spago/js-uri/v3.0.0/.tidyrc.json +10 -0
- package/.spago/lazy/v6.0.0/.eslintrc.json +26 -0
- package/.spago/lazy/v6.0.0/.gitignore +8 -0
- package/.spago/lcg/v4.0.0/.gitignore +8 -0
- package/.spago/lists/v7.0.0/.gitignore +7 -0
- package/.spago/maybe/v6.0.0/.gitignore +7 -0
- package/.spago/media-types/v6.0.0/.editorconfig +13 -0
- package/.spago/media-types/v6.0.0/.gitignore +9 -0
- package/.spago/media-types/v6.0.0/.tidyrc.json +10 -0
- package/.spago/newtype/v5.0.0/.gitignore +7 -0
- package/.spago/node-buffer/v8.0.0/.eslintrc.json +26 -0
- package/.spago/node-buffer/v8.0.0/.gitignore +8 -0
- package/.spago/node-child-process/v9.0.0/.eslintrc.json +29 -0
- package/.spago/node-child-process/v9.0.0/.gitignore +8 -0
- package/.spago/node-fs/v9.1.0/.eslintrc.json +29 -0
- package/.spago/node-fs/v9.1.0/.gitignore +9 -0
- package/.spago/node-http/v8.0.0/.eslintrc.json +29 -0
- package/.spago/node-http/v8.0.0/.gitignore +8 -0
- package/.spago/node-net/v4.0.0/.eslintrc.json +29 -0
- package/.spago/node-net/v4.0.0/.gitignore +8 -0
- package/.spago/node-path/v5.0.0/.eslintrc.json +26 -0
- package/.spago/node-path/v5.0.0/.gitignore +8 -0
- package/.spago/node-process/v10.0.0/.eslintrc.json +29 -0
- package/.spago/node-process/v10.0.0/.gitignore +8 -0
- package/.spago/node-streams/v7.0.0/.eslintrc.json +29 -0
- package/.spago/node-streams/v7.0.0/.gitignore +8 -0
- package/.spago/node-url/v6.0.0/.eslintrc.json +26 -0
- package/.spago/node-url/v6.0.0/.gitignore +8 -0
- package/.spago/nonempty/v7.0.0/.gitignore +7 -0
- package/.spago/now/v6.0.0/.editorconfig +13 -0
- package/.spago/now/v6.0.0/.eslintrc.json +29 -0
- package/.spago/now/v6.0.0/.gitignore +14 -0
- package/.spago/now/v6.0.0/.tidyrc.json +10 -0
- package/.spago/nullable/v6.0.0/.editorconfig +13 -0
- package/.spago/nullable/v6.0.0/.eslintrc.json +29 -0
- package/.spago/nullable/v6.0.0/.gitignore +14 -0
- package/.spago/nullable/v6.0.0/.tidyrc.json +10 -0
- package/.spago/options/v7.0.0/.editorconfig +13 -0
- package/.spago/options/v7.0.0/.gitignore +9 -0
- package/.spago/options/v7.0.0/.tidyrc.json +10 -0
- package/.spago/optparse/v5.0.0/.gitignore +8 -0
- package/.spago/optparse/v5.0.0/.npmrc +1 -0
- package/.spago/ordered-collections/v3.0.0/.gitignore +8 -0
- package/.spago/orders/v6.0.0/.gitignore +7 -0
- package/.spago/parallel/v6.0.0/.gitignore +7 -0
- package/.spago/parsing/v10.0.0/.editorconfig +13 -0
- package/.spago/parsing/v10.0.0/.gitignore +10 -0
- package/.spago/parsing/v10.0.0/.tidyoperators +231 -0
- package/.spago/parsing/v10.0.0/.tidyrc.json +10 -0
- package/.spago/partial/v4.0.0/.eslintrc.json +26 -0
- package/.spago/partial/v4.0.0/.gitignore +8 -0
- package/.spago/pathy/v9.0.0/.editorconfig +13 -0
- package/.spago/pathy/v9.0.0/.gitignore +9 -0
- package/.spago/pathy/v9.0.0/.tidyrc.json +10 -0
- package/.spago/posix-types/v6.0.0/.gitignore +7 -0
- package/.spago/prelude/v6.0.0/.eslintrc.json +26 -0
- package/.spago/prelude/v6.0.0/.gitignore +8 -0
- package/.spago/profunctor/v6.0.0/.gitignore +7 -0
- package/.spago/profunctor-lenses/v8.0.0/.editorconfig +13 -0
- package/.spago/profunctor-lenses/v8.0.0/.gitignore +9 -0
- package/.spago/profunctor-lenses/v8.0.0/.tidyrc.json +10 -0
- package/.spago/psci-support/v6.0.0/.eslintrc.json +28 -0
- package/.spago/psci-support/v6.0.0/.gitignore +8 -0
- package/.spago/quickcheck/v8.0.1/.eslintrc.json +26 -0
- package/.spago/quickcheck/v8.0.1/.gitignore +8 -0
- package/.spago/random/v6.0.0/.eslintrc.json +26 -0
- package/.spago/random/v6.0.0/.gitignore +8 -0
- package/.spago/record/v4.0.0/.eslintrc.json +26 -0
- package/.spago/record/v4.0.0/.gitignore +8 -0
- package/.spago/refs/v6.0.0/.eslintrc.json +26 -0
- package/.spago/refs/v6.0.0/.gitignore +8 -0
- package/.spago/st/v6.0.0/.eslintrc.json +26 -0
- package/.spago/st/v6.0.0/.gitignore +8 -0
- package/.spago/strings/v6.0.0/.eslintrc.json +26 -0
- package/.spago/strings/v6.0.0/.gitignore +8 -0
- package/.spago/tailrec/v6.0.0/.gitignore +7 -0
- package/.spago/transformers/v6.0.0/.gitignore +7 -0
- package/.spago/tuples/v7.0.0/.gitignore +7 -0
- package/.spago/type-equality/v4.0.1/.gitignore +7 -0
- package/.spago/typelevel-prelude/v7.0.0/.gitignore +8 -0
- package/.spago/unfoldable/v6.0.0/.eslintrc.json +26 -0
- package/.spago/unfoldable/v6.0.0/.gitignore +8 -0
- package/.spago/unicode/v6.0.0/.editorconfig +13 -0
- package/.spago/unicode/v6.0.0/.gitattributes +2 -0
- package/.spago/unicode/v6.0.0/.gitignore +19 -0
- package/.spago/unicode/v6.0.0/.tidyrc.json +10 -0
- package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +26 -0
- package/.spago/unsafe-coerce/v6.0.0/.gitignore +8 -0
- package/.spago/web-dom/v6.0.0/.eslintrc.json +29 -0
- package/.spago/web-dom/v6.0.0/.gitignore +9 -0
- package/.spago/web-events/v4.0.0/.eslintrc.json +29 -0
- package/.spago/web-events/v4.0.0/.gitignore +8 -0
- package/.spago/web-file/v4.0.0/.eslintrc.json +29 -0
- package/.spago/web-file/v4.0.0/.gitignore +8 -0
- package/.spago/web-html/v4.0.0/.eslintrc.json +29 -0
- package/.spago/web-html/v4.0.0/.gitignore +8 -0
- package/.spago/web-storage/v5.0.0/.eslintrc.json +29 -0
- package/.spago/web-storage/v5.0.0/.gitignore +8 -0
- package/.spago/web-xhr/v5.0.0/.eslintrc.json +29 -0
- package/.spago/web-xhr/v5.0.0/.gitignore +8 -0
- package/LICENSE +1 -1
- package/README.md +13 -7
- package/dist/fluid/css/styles.css +343 -0
- package/dist/{article → fluid}/css/view-styles.css +66 -25
- package/dist/fluid/favicon.ico +0 -0
- package/dist/fluid/fluid/dataset/methane-emissions.fld +123 -0
- package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/non-renewables.fld +1 -1
- package/dist/fluid/fluid/example/dict-list-comp.fld +1 -0
- package/dist/fluid/fluid/example/dicts.fld +10 -0
- package/dist/{article → fluid}/fluid/example/linked-inputs/energyscatter.fld +1 -1
- package/dist/{article → fluid}/fluid/example/linked-inputs/mini-energyscatter.fld +1 -1
- package/dist/{article → fluid}/fluid/example/linked-outputs/line-chart.fld +4 -2
- package/dist/fluid/fluid/example/linked-outputs/moving-average.fld +19 -0
- package/dist/fluid/fluid/example/linked-outputs/pairs-data.fld +1 -0
- package/dist/fluid/fluid/example/linked-outputs/pairs.fld +2 -0
- package/dist/fluid/fluid/example/percent.fld +1 -0
- package/dist/fluid/fluid/example/plot/methane.fld +14 -0
- package/dist/fluid/fluid/example/plot/non-renewables.fld +22 -0
- package/dist/fluid/fluid/example/slicing/convolution/edgeDetect.expect.fld +1 -0
- package/dist/fluid/fluid/example/slicing/convolution/edgeDetect.fld +1 -0
- package/dist/fluid/fluid/example/slicing/convolution/emboss-wrap.fld +1 -0
- package/dist/fluid/fluid/example/slicing/convolution/emboss.expect.fld +1 -0
- package/dist/fluid/fluid/example/slicing/convolution/emboss.fld +1 -0
- package/dist/fluid/fluid/example/slicing/convolution/gaussian.expect.fld +1 -0
- package/dist/fluid/fluid/example/slicing/convolution/gaussian.fld +1 -0
- package/dist/{article → fluid}/fluid/example/slicing/convolution/test-image.fld +1 -1
- package/dist/fluid/fluid/example/slicing/dict/create.expect.fld +2 -0
- package/dist/fluid/fluid/example/slicing/dict/create.fld +1 -0
- package/dist/fluid/fluid/example/slicing/dict/difference.expect.fld +4 -0
- package/dist/fluid/fluid/example/slicing/dict/difference.fld +3 -0
- package/dist/fluid/fluid/example/slicing/dict/disjointUnion.expect.fld +2 -0
- package/dist/fluid/fluid/example/slicing/dict/disjointUnion.fld +1 -0
- package/dist/fluid/fluid/example/slicing/dict/foldl.expect.fld +3 -0
- package/dist/fluid/fluid/example/slicing/dict/foldl.fld +1 -0
- package/dist/fluid/fluid/example/slicing/dict/get.expect.fld +5 -0
- package/dist/fluid/fluid/example/slicing/dict/get.fld +3 -0
- package/dist/fluid/fluid/example/slicing/dict/intersectionWith.expect.fld +5 -0
- package/dist/fluid/fluid/example/slicing/dict/intersectionWith.fld +4 -0
- package/dist/fluid/fluid/example/slicing/dict/map.expect.fld +8 -0
- package/dist/fluid/fluid/example/slicing/dict/map.fld +5 -0
- package/dist/fluid/fluid/example/slicing/dict/match.expect.fld +6 -0
- package/dist/fluid/fluid/example/slicing/dict/match.fld +5 -0
- package/dist/fluid/fluid/example/slicing/explained.expect.fld +1 -0
- package/dist/fluid/fluid/example/slicing/explained.fld +1 -0
- package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/bar-chart-line-chart.fld +9 -6
- package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.fld +8 -7
- package/dist/fluid/fluid/example/text-viz/datasets/ssp126.fld +898 -0
- package/dist/fluid/fluid/example/text-viz/datasets/ssp245.fld +954 -0
- package/dist/fluid/fluid/example/text-viz/datasets/ssp370.fld +842 -0
- package/dist/fluid/fluid/example/text-viz/datasets/ssp585.fld +954 -0
- package/dist/fluid/fluid/example/text-viz/explainable-table.fld +7 -0
- package/dist/fluid/fluid/example/text-viz/fake-probabilities.fld +3 -0
- package/dist/fluid/fluid/example/text-viz/figure-spm-4.fld +42 -0
- package/dist/fluid/fluid/example/text-viz/left-barchart-table.fld +5 -0
- package/dist/fluid/fluid/example/text-viz/likelihoods.fld +9 -0
- package/dist/fluid/fluid/example/text-viz/right-barchart-table.fld +5 -0
- package/dist/fluid/fluid/example/text-viz/table-spm-1.fld +30 -0
- package/dist/{article → fluid}/fluid/lib/prelude.fld +21 -1
- package/dist/{article/fluid/lib/nombre.fld → fluid/fluid/lib/text-viz.fld} +4 -0
- package/dist/fluid/fluid.mjs +28584 -0
- package/dist/fluid/font/GraphikLight.woff2 +0 -0
- package/dist/fluid/font/GraphikLightItalic.woff2 +0 -0
- package/dist/fluid/font/GraphikMedium.woff2 +0 -0
- package/dist/fluid/font/GraphikMediumItalic.woff2 +0 -0
- package/dist/fluid/font/OdiseanTech.woff2 +0 -0
- package/dist/fluid/load-fig.js +44294 -0
- package/dist/fluid/shared/footer.html +6 -0
- package/dist/fluid/shared/header.html +26 -0
- package/dist/fluid/shared/sub-header.html +12 -0
- package/dist/fluid/shared/util.js +72 -0
- package/index.js +44294 -0
- package/package.json +32 -30
- package/script/rebundle-website.sh +81 -0
- package/script/util/clean.sh +5 -0
- package/dist/article/app.js +0 -40580
- package/dist/article/css/styles.css +0 -191
- package/dist/article/fluid/example/dicts.fld +0 -11
- package/dist/article/fluid/example/graphics/small-barchart.fld +0 -5
- package/dist/article/fluid/example/linked-outputs/bar-chart-line-chart.fld +0 -26
- package/dist/article/fluid/example/linked-outputs/moving-average-data.fld +0 -9
- package/dist/article/fluid/example/linked-outputs/moving-average.fld +0 -15
- package/dist/article/fluid/example/linked-outputs/pairs-data.fld +0 -1
- package/dist/article/fluid/example/linked-outputs/pairs.fld +0 -3
- package/dist/article/fluid/example/linked-outputs/stacked-bar-chart-scatter-plot.fld +0 -38
- package/dist/article/fluid/example/slicing/convolution/edgeDetect.expect.fld +0 -1
- package/dist/article/fluid/example/slicing/convolution/edgeDetect.fld +0 -1
- package/dist/article/fluid/example/slicing/convolution/emboss-wrap.fld +0 -1
- package/dist/article/fluid/example/slicing/convolution/emboss.expect.fld +0 -1
- package/dist/article/fluid/example/slicing/convolution/emboss.fld +0 -1
- package/dist/article/fluid/example/slicing/convolution/gaussian.expect.fld +0 -1
- package/dist/article/fluid/example/slicing/convolution/gaussian.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/create.expect.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/create.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/difference.expect.fld +0 -3
- package/dist/article/fluid/example/slicing/dict/difference.fld +0 -3
- package/dist/article/fluid/example/slicing/dict/disjointUnion.expect.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/disjointUnion.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/foldl.expect.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/foldl.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/fromRecord.expect.fld +0 -2
- package/dist/article/fluid/example/slicing/dict/fromRecord.fld +0 -1
- package/dist/article/fluid/example/slicing/dict/get.expect.fld +0 -3
- package/dist/article/fluid/example/slicing/dict/get.fld +0 -2
- package/dist/article/fluid/example/slicing/dict/intersectionWith.expect.fld +0 -2
- package/dist/article/fluid/example/slicing/dict/intersectionWith.fld +0 -4
- package/dist/article/fluid/example/slicing/dict/map.expect.fld +0 -6
- package/dist/article/fluid/example/slicing/dict/map.fld +0 -5
- package/dist/article/fluid/example/text.fld +0 -27
- package/dist/article/fluid/lib/moving-average.fld +0 -35
- package/dist/article/index.html +0 -44
- package/fluid.js +0 -46
- /package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/mini-non-renewables.fld +0 -0
- /package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/mini-renewables.fld +0 -0
- /package/dist/{article/fluid/example/linked-inputs/renewables.fld → fluid/fluid/dataset/renewables-new.fld} +0 -0
- /package/dist/{article → fluid}/fluid/dataset/renewables-restricted.fld +0 -0
- /package/dist/{article/fluid/example/linked-outputs → fluid/fluid/dataset}/renewables.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/arithmetic.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/array.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/compose.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-1.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-10.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-2.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-3.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-4.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-5.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-6.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-7.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-8.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-comp-9.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/desugar/list-enum.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/div-mod-quot-rem.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/factorial.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/filter.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/first-class-constr.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/flatten.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/foldr-sumSquares.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/graphics/background.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/graphics/grouped-bar-chart.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/graphics/line-chart.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/graphics/stacked-bar-chart.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/include-input-into-output.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/length.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/lexicalScoping.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/lib/some-constants.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/linked-outputs/convolution-data.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/linked-outputs/convolution.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/lookup.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/map.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/mergeSort.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/normalise.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/nub.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/pattern-match.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/range.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/record-lookup.fld +0 -0
- /package/dist/{article/fluid/example/linked-outputs/bar-chart-line-chart.expect.fld → fluid/fluid/example/records.expect.fld} +0 -0
- /package/dist/{article → fluid}/fluid/example/records.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/reverse.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/scratchpad.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/add.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/add.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/array/array.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/array/array.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/array/dims.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/array/dims.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/array/lookup.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/array/lookup.fld +0 -0
- /package/dist/{article/fluid/example/slicing/linked-outputs → fluid/fluid/example/slicing/array}/renewables.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/convolution/filter/edge-detect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/convolution/filter/emboss.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/convolution/filter/gaussian.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/divide.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/divide.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/dtw/average-series.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/dtw/average-series.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/dtw/compute-dtw.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/dtw/compute-dtw.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/filter.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/filter.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/intersperse-1.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/intersperse-2.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/intersperse.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/length.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/length.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/bar-chart-line-chart.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/list-comp-1.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/list-comp-2.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/list-comp.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/lookup.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/lookup.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/map.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/map.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/matrix-update.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/matrix-update.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/multiply.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/multiply.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/nth.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/nth.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/output-not-source.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/output-not-source.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/section-5-example-1.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/section-5-example-2.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/section-5-example-3.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/section-5-example.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/zeros-1.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/zeros-2.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/zeros.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/zipWith-1.expect.fld +0 -0
- /package/dist/{article → fluid}/fluid/example/slicing/zipWith.fld +0 -0
- /package/dist/{article → fluid}/fluid/lib/convolution.fld +0 -0
- /package/dist/{article → fluid}/fluid/lib/dtw.fld +0 -0
- /package/dist/{article → fluid}/fluid/lib/fnum.fld +0 -0
- /package/dist/{article → fluid}/fluid/lib/graphics.fld +0 -0
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: "Fira Code";
|
|
4
|
-
src: url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.glowing, a {
|
|
8
|
-
transition: all .25s;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
a:hover {
|
|
12
|
-
text-shadow: 0 0 2px #FFF, 0 0 5px #A0A0FF, 0 0 7px #8080A0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.nowrap {
|
|
16
|
-
white-space: nowrap;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
code {
|
|
20
|
-
font-size: 11pt;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
body {
|
|
24
|
-
font-size: 11pt;
|
|
25
|
-
font-family: "Roboto", sans-serif;
|
|
26
|
-
font-weight: 300;
|
|
27
|
-
line-height: 1.25;
|
|
28
|
-
padding: 0;
|
|
29
|
-
margin: 0;
|
|
30
|
-
background-color: #FFFFFF; /* #181818; */
|
|
31
|
-
color: #404040;
|
|
32
|
-
margin-bottom: 10em;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.center {
|
|
36
|
-
height: 100%;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.align-right {
|
|
40
|
-
text-align: right;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.title {
|
|
44
|
-
color: darkblue;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
h3 {
|
|
48
|
-
font-family: "Roboto", sans-serif;
|
|
49
|
-
font-weight: 600;
|
|
50
|
-
margin-top: 10pt;
|
|
51
|
-
margin-bottom: 0;
|
|
52
|
-
font-size: '24px'
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
h4 {
|
|
56
|
-
margin-top: 10pt;
|
|
57
|
-
margin-block-start: 1em;
|
|
58
|
-
margin-bottom: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.glowing {
|
|
62
|
-
transition-timing-function: ease-out
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
a {
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
color: inherit;
|
|
68
|
-
transition-timing-function: ease-out
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
a.not_decorated,
|
|
72
|
-
a:hover {
|
|
73
|
-
text-decoration: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
ul {
|
|
77
|
-
padding-left: 0
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
li {
|
|
81
|
-
margin-bottom: 1ex
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
li:last-child {
|
|
85
|
-
margin-bottom: 0
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
table {
|
|
89
|
-
margin: 4mm;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.table-caption {
|
|
93
|
-
text-align: left;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
th {
|
|
97
|
-
font-size: 11px;
|
|
98
|
-
text-align: left;
|
|
99
|
-
border-bottom: 'thin solid';
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
td {
|
|
103
|
-
font-size: 11px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
td:nth-child(1) {
|
|
107
|
-
color: lightgray;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
nav ul {
|
|
111
|
-
list-style: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
nav ul li {
|
|
115
|
-
float: left;
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
nav ul li a {
|
|
120
|
-
display: block;
|
|
121
|
-
width: 100%;
|
|
122
|
-
text-align: left;
|
|
123
|
-
padding-right: 8px;
|
|
124
|
-
text-decoration: none;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
nav ul li a.active-page {
|
|
128
|
-
text-shadow: 0 0 2px #FFF, 0 0 5px #A0A0FF, 0 0 7px #8080A0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.cm-line {
|
|
132
|
-
font-family: 'Fira Code';
|
|
133
|
-
font-size: 8pt;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.grid-container {
|
|
137
|
-
display: grid;
|
|
138
|
-
width: 100%;
|
|
139
|
-
grid-template-columns: 10px 47.5% fit-content(10px) 47.5%;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.flex-left-align {
|
|
143
|
-
display: flex;
|
|
144
|
-
flex-direction: column;
|
|
145
|
-
align-items: start;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.flex-right-align {
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: column;
|
|
151
|
-
align-items: flex-end;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.flex-bottom-align {
|
|
155
|
-
display: flex;
|
|
156
|
-
flex-direction: row;
|
|
157
|
-
align-items: flex-end;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.data-pane-button {
|
|
161
|
-
font-size: 9pt;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.toggle-button {
|
|
165
|
-
color: #CCCCCC;
|
|
166
|
-
user-select: none;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.toggle-button:hover {
|
|
170
|
-
color: #999999;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.data-pane {
|
|
174
|
-
background-color: #F5F5F5;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* Standalone figures have hardcoded zoom for presentation purposes. */
|
|
178
|
-
.double-size {
|
|
179
|
-
zoom: 1.8;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
body.standalone {
|
|
183
|
-
height: 100%;
|
|
184
|
-
display: grid; /* outer grid for vertical centering of inner */
|
|
185
|
-
place-items: center;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/* Needed for contained height specifications to work */
|
|
189
|
-
html {
|
|
190
|
-
height: 100%;
|
|
191
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
MultiView {|
|
|
2
|
-
"bar-chart" :=
|
|
3
|
-
let totalFor c rows =
|
|
4
|
-
sum [ row.output | row <- rows, row.country == c ];
|
|
5
|
-
let data2015 = [ row | row <- renewables, row.year == 2015 ];
|
|
6
|
-
countryData = [ { x: c, bars: [ { y: "output", z: totalFor c data2015 } ] }
|
|
7
|
-
| c <- ["China", "USA", "Germany"] ]
|
|
8
|
-
in BarChart {
|
|
9
|
-
caption: "Total output by country",
|
|
10
|
-
data: countryData
|
|
11
|
-
},
|
|
12
|
-
"line-chart" :=
|
|
13
|
-
let series type country = [
|
|
14
|
-
{ x: row.year, y: row.output }
|
|
15
|
-
| year <- [2013..2018], row <- renewables,
|
|
16
|
-
row.year == year, row.energyType == type, row.country == country
|
|
17
|
-
] in LineChart {
|
|
18
|
-
caption: "Output of USA relative to China",
|
|
19
|
-
plots: [
|
|
20
|
-
LinePlot { name: type, data: plot }
|
|
21
|
-
| type <- ["Bio", "Hydro", "Solar", "Wind"],
|
|
22
|
-
let plot = zipWith (fun p1 p2 -> { x: p1.x, y: p1.y / p2.y })
|
|
23
|
-
(series type "USA") (series type "China")
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
|}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
let newPoints offset = map (fun point -> { x: point.x, y: (point.y + offset) }) points;
|
|
2
|
-
|
|
3
|
-
let points' = newPoints 0;
|
|
4
|
-
cavgs = mAvgChop points' 1;
|
|
5
|
-
cavgs' = mAvgShrink points' 1;
|
|
6
|
-
savgs = sAvgShrink points' 2
|
|
7
|
-
in MultiView {|
|
|
8
|
-
"line-chart-1" :=
|
|
9
|
-
LineChart {
|
|
10
|
-
caption: "Moving averages",
|
|
11
|
-
plots: [ LinePlot { name: "Simple", data: savgs }
|
|
12
|
-
, LinePlot { name: "Central", data: cavgs }
|
|
13
|
-
, LinePlot { name: "Original Curve", data: points' } ]
|
|
14
|
-
}
|
|
15
|
-
|}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(1, (2, (3, 4)))
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
MultiView {|
|
|
2
|
-
"stacked-bar-chart" :=
|
|
3
|
-
let totalFor year country rows =
|
|
4
|
-
let [ row ] = [ row | row <- rows, row.year == year, row.country == country ]
|
|
5
|
-
in row.nuclearOut + row.gasOut + row.coalOut + row.petrolOut;
|
|
6
|
-
let stack year = [ { y: country, z: totalFor year country nonRenewables }
|
|
7
|
-
| country <- ["BRA", "EGY", "IND", "JPN"] ]
|
|
8
|
-
in BarChart {
|
|
9
|
-
caption: "Non-renewables by country",
|
|
10
|
-
data: [ { x: numToStr year, bars: stack year }
|
|
11
|
-
| year <- [2014..2018] ]
|
|
12
|
-
},
|
|
13
|
-
"scatter-plot" :=
|
|
14
|
-
let isCountry name x = name == x.country;
|
|
15
|
-
isYear year x = year == x.year;
|
|
16
|
-
|
|
17
|
-
let plot year countries =
|
|
18
|
-
let rens = filter (isYear year) renewables;
|
|
19
|
-
nonRens = filter (isYear year) nonRenewables;
|
|
20
|
-
let plotCountry country =
|
|
21
|
-
let rens' = filter (isCountry country) rens;
|
|
22
|
-
rensOut = sum (map (fun x -> x.output) rens');
|
|
23
|
-
rensCap = sum (map (fun x -> x.capacity) rens');
|
|
24
|
-
x = head (filter (isCountry country) nonRens);
|
|
25
|
-
nonRensCap = x.nuclearCap + x.petrolCap + x.gasCap + x.coalCap
|
|
26
|
-
in {
|
|
27
|
-
x: rensCap / (rensCap + nonRensCap),
|
|
28
|
-
y: (rensOut + x.nuclearOut) / (rensCap + x.nuclearCap)
|
|
29
|
-
}
|
|
30
|
-
in map plotCountry countries
|
|
31
|
-
|
|
32
|
-
in ScatterPlot {
|
|
33
|
-
caption: "Clean energy efficiency vs. proportion of renewable energy capacity",
|
|
34
|
-
data: plot 2018 [ "BRA", "CHN", "DEU", "FRA", "EGY", "IND", "JPN", "MEX", "NGA", "USA" ],
|
|
35
|
-
xlabel: "Renewables/TotalEnergyCap",
|
|
36
|
-
ylabel: "Clean Capacity Factor"
|
|
37
|
-
}
|
|
38
|
-
|}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter extend
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter extend
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter wrap
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter zero
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter zero
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter zero
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
convolve input_image filter zero
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{|"a" := 5, ⸨"a"⸩ ++ ⸨"b"⸩ := 6|}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{| "a" := 5, "a" ++ "b" := 6 |}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{|⸨"a"⸩ := 5, "b" := 6|} `dict_disjointUnion` {|"c" := ⸨7⸩|}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{| "a" := 5, "b" := 6 |} `dict_disjointUnion` {| "c" := 7 |}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
foldl (*) 1 (dict_foldl concat2 [] {|"a" := [5, 6], "b" := [⸨0⸩, 10], "c" := [3, 4]|})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
foldl (*) 1 (dict_foldl concat2 [] {| "a" := [5, 6], "b" := [0, 10], "c" := [3, 4] |})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dict_fromRecord { a: 5, ab: 6 }
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
let totalFor c rows =
|
|
2
|
-
sum [ row.output | row <- rows, row.country == c ];
|
|
3
|
-
let lookupOutput name type dataset = (head [ row | row <- dataset, row.country == name, row.energyType == type]).output;
|
|
4
|
-
let data2015 = [ row | row <- renewables, row.year == 2015 ];
|
|
5
|
-
countryData = [ { x: c, bars: [ { y: "output", z: totalFor c data2015 } ] }
|
|
6
|
-
| c <- ["China", "USA", "Germany"] ];
|
|
7
|
-
germany = lookupOutput "Germany" "Bio" data2015;
|
|
8
|
-
usa = lookupOutput "USA" "Bio" data2015;
|
|
9
|
-
china = lookupOutput "China" "Bio" data2015
|
|
10
|
-
in MultiView {|
|
|
11
|
-
"bar-chart" :=
|
|
12
|
-
BarChart {
|
|
13
|
-
caption: "Total output by country",
|
|
14
|
-
data: countryData
|
|
15
|
-
},
|
|
16
|
-
"one" :=
|
|
17
|
-
LinkedText( ["The total for the USA is: "
|
|
18
|
-
, numToStr (totalFor "USA" data2015)
|
|
19
|
-
, ", compared to that of China, which is actually: "
|
|
20
|
-
, numToStr (totalFor "China" data2015) ] ),
|
|
21
|
-
"two" :=
|
|
22
|
-
LinkedText( ["By inspecting the data, we can see that Germany produced "
|
|
23
|
-
, gradedLeqP germany usa
|
|
24
|
-
, " Bio energy than the USA (for the year 2015), whilst the USA produced "
|
|
25
|
-
, gradedLeqP usa china
|
|
26
|
-
, " than China." ] )
|
|
27
|
-
|}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
let zipPairs = zipWith (fun x y -> {x : x, y : y});
|
|
2
|
-
let getXs = map (fun rec -> rec.x);
|
|
3
|
-
let getYs = map (fun rec -> rec.y);
|
|
4
|
-
|
|
5
|
-
-- ISSUE: With the ones that shrink, the values near the ends will be incorrect,
|
|
6
|
-
-- since the actual number of points is less than the size of window (= 1 + (2 * window))
|
|
7
|
-
-- To fix this, need to change the constant we divide by, but using length induces dependency on whole list
|
|
8
|
-
|
|
9
|
-
-- Central average, but stops near the ends of the sequence
|
|
10
|
-
let cMAvg ns window =
|
|
11
|
-
[ (sum (slice (ind - window) (ind + window + 1) ns)) / (1 + 2 * window) | ind <- [window..length ns - window] ];
|
|
12
|
-
|
|
13
|
-
let mAvgChop ps window =
|
|
14
|
-
zipPairs (slice window (length ps - window) (getXs ps)) (cMAvg (getYs ps) window);
|
|
15
|
-
|
|
16
|
-
-- Central average, but end points use incomplete data
|
|
17
|
-
let cMAvg' ns window =
|
|
18
|
-
[ (sum (slice (ind - window) (ind + window + 1) ns)) / (1 + 2 * window) | ind <- [0..length ns] ];
|
|
19
|
-
|
|
20
|
-
let mAvgShrink ps window =
|
|
21
|
-
zipPairs (getXs ps) (cMAvg' (getYs ps) window);
|
|
22
|
-
|
|
23
|
-
-- Simple (rearward) average, chops the beginning off the sequence
|
|
24
|
-
let sMAvg ns window =
|
|
25
|
-
[ (sum (slice (ind - window) (ind + 1) ns)) / window | ind <- [window..length ns] ];
|
|
26
|
-
|
|
27
|
-
let sAvgChop ps window =
|
|
28
|
-
zipPairs (slice window (length ps) (getXs ps)) (sMAvg (getYs ps) window);
|
|
29
|
-
|
|
30
|
-
-- Simple (rearward average), doesn't chop beginning off
|
|
31
|
-
let sMAvg' ns window =
|
|
32
|
-
[ (sum (slice (ind - window) (ind + 1) ns)) / window | ind <- [0..length ns] ];
|
|
33
|
-
|
|
34
|
-
let sAvgShrink ps window =
|
|
35
|
-
zipPairs (getXs ps) (sMAvg' (getYs ps) window);
|
package/dist/article/index.html
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>Fluid: Data-Linked Visualisations</title>
|
|
8
|
-
<link href="/css/styles.css" rel="stylesheet" type="text/css">
|
|
9
|
-
<link href="/css/view-styles.css" rel="stylesheet" type="text/css">
|
|
10
|
-
<script src="https://use.fontawesome.com/1091715d00.js"></script>
|
|
11
|
-
<script>
|
|
12
|
-
// move to PureScript
|
|
13
|
-
function toggle(id) {
|
|
14
|
-
const elem = document.getElementById(id)
|
|
15
|
-
if (elem.style.visibility == 'hidden')
|
|
16
|
-
elem.style.visibility = 'visible'
|
|
17
|
-
else
|
|
18
|
-
elem.style.visibility = 'hidden'
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
</head>
|
|
22
|
-
<body class="standalone">
|
|
23
|
-
<div class="grid-container double-size">
|
|
24
|
-
<div></div>
|
|
25
|
-
<div></div>
|
|
26
|
-
<div></div>
|
|
27
|
-
<div></div>
|
|
28
|
-
<div></div>
|
|
29
|
-
<div id="fig-input" class="flex-right-align data-pane"></div>
|
|
30
|
-
<div>
|
|
31
|
-
<div onclick="toggle('fig-input')"><span class="data-pane-button toggle-button">◀▶</span></div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="flex-left-align">
|
|
34
|
-
<div id="fig"></div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<script src="app.js"></script>
|
|
39
|
-
<script>
|
|
40
|
-
// move to PureScript
|
|
41
|
-
toggle('fig-input')
|
|
42
|
-
</script>
|
|
43
|
-
</body>
|
|
44
|
-
</html>
|
package/fluid.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const { program } = require('commander');
|
|
3
|
-
const fs = require('node:fs');
|
|
4
|
-
const webFS = require('fs').promises;
|
|
5
|
-
const filenameRegex = /\w+\.yml/ //may need to expand character set
|
|
6
|
-
const express = require('express');
|
|
7
|
-
const serve = require('express-static');
|
|
8
|
-
|
|
9
|
-
const app = express();
|
|
10
|
-
const host = '127.0.0.1';
|
|
11
|
-
const port = 8080;
|
|
12
|
-
|
|
13
|
-
program.command('load')
|
|
14
|
-
.arguments('<file>')
|
|
15
|
-
.action(function(file)
|
|
16
|
-
{
|
|
17
|
-
if (file.match(filenameRegex) != null)
|
|
18
|
-
{
|
|
19
|
-
try
|
|
20
|
-
{
|
|
21
|
-
//read data stream if file is large
|
|
22
|
-
//const data = fs.readFileSync(__dirname + "/" + file, 'utf8');
|
|
23
|
-
const data = fs.readFileSync(process.cwd() + "/" + file, 'utf8'); //assuming file is located at command line's current directory
|
|
24
|
-
console.log(data);
|
|
25
|
-
|
|
26
|
-
app.use(serve(__dirname + '/dist/article'));
|
|
27
|
-
|
|
28
|
-
const server = app.listen(port, host, function()
|
|
29
|
-
{
|
|
30
|
-
console.log("Server running: " + __dirname + '/dist/article\n' +
|
|
31
|
-
`Access on http://${host}:${port}`
|
|
32
|
-
);
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
catch (err)
|
|
36
|
-
{
|
|
37
|
-
console.error(err);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else
|
|
41
|
-
{
|
|
42
|
-
console.error("Invalid input file: Must be a .yml file.")
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
program.parse()
|
/package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/mini-non-renewables.fld
RENAMED
|
File without changes
|
/package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/mini-renewables.fld
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|