Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
7 lines
303 B
Text
7 lines
303 B
Text
import count from "../count.js";
|
|
import quantile from "../quantile.js";
|
|
|
|
export default function thresholdFreedmanDiaconis(values, min, max) {
|
|
const c = count(values), d = quantile(values, 0.75) - quantile(values, 0.25);
|
|
return c && d ? Math.ceil((max - min) / (2 * d * Math.pow(c, -1 / 3))) : 1;
|
|
}
|