UNPKG

@formant/ava

Version:

A framework for automated visual analytics.

14 lines (13 loc) 1.18 kB
import { AlgorithmStandardInput, InsightExtractorProps, InsightType, NoPatternInfo, PatternInfo, PreValidationProps, TimeSeriesOutlierInfo } from '../types'; export declare const calculatePValue: (values: number[], target: number, alternative?: 'two-sided' | 'less' | 'greater') => number; export declare const calculateOutlierThresholds: (values: number[], significance: number, alternative?: 'two-sided' | 'less' | 'greater') => [number, number]; export declare const getAlgorithmCommonInput: ({ data, dimensions, measures, }: InsightExtractorProps) => AlgorithmStandardInput; export declare const preValidation: ({ data, dimensions, measures, options, insightType, }: PreValidationProps) => string | true; export declare const getNonSignificantInsight: ({ infoType, insightType, detailInfo, customInfo, }: { insightType: InsightType; detailInfo?: string; infoType: 'verificationFailure' | 'noInsight'; customInfo?: Record<string, any>; }) => [NoPatternInfo]; export declare const pickValidPattern: (infos?: PatternInfo[]) => PatternInfo[]; export declare const pickValidTimeSeriesOutlierPatterns: (infos?: TimeSeriesOutlierInfo[]) => TimeSeriesOutlierInfo[];