Platform
Resources
Pricing
Sign in
Get started
Falk Lieder
Workspace
Fork
Public
By
Falk Lieder
Edited
Nov 29, 2022
5
Insert cell
Insert cell
import
{
newProject
,
cellGen
,
stylesheet
}
from
"@hazelfire/squiggle"
Insert cell
squiggle_test
=
newProject
(
)
Insert cell
cell
=
cellGen
(
squiggle_test
)
Insert cell
viewof
define_x
=
cell
(
`x=(10 to 100) * (5 to 50)`
)
Insert cell
use_x
=
cell
(
`x+1`
,
define_x
)
Insert cell
half_life2Caparara
=
FileAttachment
(
"half_life@2.caparara.json"
)
.
json
(
)
Insert cell
viewof
half_life_caparara
=
cell
(
`half_life_caparara=SampleSet.fromList($half_life)`
,
undefined
,
{
jsImports
:
{
half_life
:
half_life2Caparara
}
}
)
Insert cell
cell
(
`mean(half_life_caparara)`
,
half_life_caparara
)
Insert cell
cell
(
`half_life_caparara * x`
,
[
half_life_caparara
,
define_x
]
)
Insert cell
half_life_bs_samples
=
FileAttachment
(
"half_life_bs.json"
)
.
json
(
)
Insert cell
viewof
half_life_bs
=
cell
(
`half_life_bs=SampleSet.fromList($half_life_bs)`
,
undefined
,
{
jsImports
:
{
half_life_bs
:
half_life_bs_samples
}
}
)
Insert cell
viewof
half_life
=
cell
(
`half_life = mx(half_life_caparara,half_life_bs)`
,
[
half_life_caparara
,
half_life_bs
]
)
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
squiggle_test
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cell
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
define_x
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
use_x
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
half_life2Caparara
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
half_life_caparara
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
half_life_bs_samples
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
half_life_bs
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
half_life
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML