Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Biomimicry-AI
/
Nexus
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Nexus
/
node_modules
/
d3-array
/
src
/
threshold
/
sturges.js
Severian
Upload 7464 files
c211499
over 2 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
160 Bytes
import
count
from
"../count.js"
;
export
default
function
thresholdSturges
(
values
) {
return
Math
.
max
(
1
,
Math
.
ceil
(
Math
.
log
(
count
(values)) /
Math
.
LN2
) +
1
);
}