Files
fn_registry/functions/datascience/outlier_result.go
T
egutierrez 8581d3959a refactor: mover .go de tipos Go a functions/{domain}/ para compilación unificada
Los archivos .go de tipos ahora viven junto a las funciones en functions/{domain}/
(mismo paquete Go), resolviendo errores de compilación por tipos no encontrados
(Option, Pair, Result, etc.). Los .md de metadata permanecen en types/{domain}/
con file_path actualizado a functions/. Se elimina types.go duplicado de infra.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 23:23:00 +01:00

21 lines
458 B
Go

package datascience
// OutlierResult is a sum type representing whether a data point is normal or an outlier.
type OutlierResult interface{ outlierResult() }
// Normal indicates the data point is within expected range.
type Normal struct {
Index int
Value float64
}
// Outlier indicates the data point is anomalous.
type Outlier struct {
Index int
Value float64
ZScore float64
}
func (Normal) outlierResult() {}
func (Outlier) outlierResult() {}