Published
Edited
Mar 21, 2018
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
nrep = 1000
Insert cell
Insert cell
seeds = {
var seeds = [];
for(var i=0;i<nrep;i++){
seeds.push(i+1);
}
return seeds;
}
Insert cell
Insert cell
results = {
var results = [];
for(var i=0;i<nrep;i++){
var result = Module.ssa(rate,max_time,seeds[i]);
results.push(result);
}
return results;
}
Insert cell
Insert cell
Insert cell
url = "https://cdn.rawgit.com/noamross/wassa/master/inst/htmlwidgets/lib/emssa/emssa.js"
Insert cell
Insert cell
WebAssembly = window.WebAssembly
Insert cell
Insert cell
Module = new Promise(resolve => {
require(url).catch(()=>window.Module.addOnPostRun(() => resolve(window.Module)));
})
Insert cell
Insert cell
import {slider} from "@jashkenas/inputs"
Insert cell
Insert cell
Plotly = require("https://cdn.plot.ly/plotly-latest.min.js")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more