Platform
Resources
Pricing
Sign in
Get started
Wille Marcel
Software Engineer at Development Seed
Workspace
Fork
Public
By
Wille Marcel
Edited
Jun 12, 2023
1
Insert cell
Insert cell
results
=
FileAttachment
(
"spectrogram-1686579394635.json"
)
.
json
(
)
Insert cell
filterResults
=
(
arr
)
=>
arr
.
reduce
(
(
acc
,
item
)
=>
{
if
(
!
acc
.
includes
(
item
.
entity
.
file_seq_id
)
)
{
acc
.
push
(
item
.
entity
.
file_seq_id
)
;
}
return
acc
;
}
,
[
]
)
Insert cell
filterResults
(
results
)
.
length
Insert cell
filterResults
(
results
.
slice
(
0
,
1000
)
)
.
length
Insert cell
filterResults
(
results
.
slice
(
0
,
2000
)
)
.
length
Insert cell
filterResults
(
results
.
slice
(
0
,
3000
)
)
.
length
Insert cell
filterResults
(
results
.
slice
(
0
,
4000
)
)
.
length
Insert cell
[
0
,
999
,
1999
,
2999
,
3999
,
4999
]
.
map
(
(
i
)
=>
results
[
i
]
.
distance
)
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
results
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
filterResults
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
Add comment
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML