<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>hello-wasm example</title>
</head>
<body>
<script type="module">
import init, {get_jenks_breaks, get_jenks_classification, get_quantile_breaks, get_quantile_classification, get_head_tail_breaks, get_head_tail_classification, get_equal_interval_breaks, get_equal_interval_classification, get_st_dev_breaks, get_st_dev_classification, get_hinge_breaks, get_hinge_classification} from "./pkg/classify.js";
init()
.then(() => {
console.log("jenks breaks ", get_jenks_breaks(3, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("quantile breaks ", get_quantile_breaks(3, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("head-tail breaks ", get_head_tail_breaks([1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("equal interval breaks ", get_equal_interval_breaks(3, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("standard deviation breaks ", get_st_dev_breaks(1, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("hinge breaks ", get_hinge_breaks(0.25, [1, 2, 3, 5, 6, 7, 9, 10, 11]))
console.log("jenks classification ", get_jenks_classification(3, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("quantile classification ", get_quantile_classification(3, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("head-tail classification ", get_head_tail_classification([1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("equal interval classification ", get_equal_interval_classification(3, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("standard deviation classification ", get_st_dev_classification(1, [1, 2, 3, 5, 6, 7, 9, 10, 11])) console.log("hinge classification ", get_hinge_classification(0.25, [1, 2, 3, 5, 6, 7, 9, 10, 11])) });
</script>
</body>
</html>