---
name: histogram
kind: function
lang: go
domain: datascience
version: "1.0.0"
purity: pure
signature: "func Histogram(data []float64, buckets int) []int"
description: "Calcula las frecuencias de un slice de float64 distribuidas en un número dado de buckets equiespaciados."
tags: [datascience, statistics, histogram, frequency, pendiente-usar, transformer]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: ["math"]
params:
  - name: data
    desc: "slice de valores numéricos a distribuir en el histograma"
  - name: buckets
    desc: "número de buckets equiespaciados (ej: 10, 50, 100)"
output: "slice de enteros con frecuencias en cada bucket, tamaño igual a buckets"
tested: false
tests: []
test_file_path: ""
file_path: "functions/datascience/histogram.go"
---
