import { KpiStatistic } from './kpi-statistic'; import { KpiPeriodType } from '../kpi/kpi'; import { KpiOrgScope } from '../kpi-org-scope/kpi-org-scope'; import { KpiScope } from '../kpi-scope/kpi-scope'; /** * KPI 통계 계산 서비스 * KpiValue 데이터로부터 통계값을 계산하여 KpiStatistic에 저장 */ export declare class KpiStatisticCalculationService { /** * 전체 KPI에 대해 통계를 계산 */ static calculateAllStatistics(periodType: KpiPeriodType, valueDate: string, context: ResolverContext): Promise; /** * 특정 KPI의 통계를 계산 */ static calculateKpiStatistics(kpiId: string, periodType: KpiPeriodType, valueDate: string, kpiOrgScope: KpiOrgScope | null, context: ResolverContext): Promise; /** * 스코프별 통계 계산 (KpiScope 기반) */ static calculateScopedStatistics(kpiId: string, periodType: KpiPeriodType, valueDate: string, context: ResolverContext): Promise; /** * 특정 스코프 차원별 통계 계산 */ static calculateStatisticsByScope(kpiId: string, periodType: KpiPeriodType, valueDate: string, kpiScope: KpiScope, context: ResolverContext): Promise; /** * 스코프 값별 집계 통계 계산 (예: 서울 전체 평균) */ private static calculateAggregatedScopeStatistics; /** * 특정 스코프 필드의 유니크한 값들 조회 */ private static getDistinctScopeValues; /** * 통계값 계산 로직 */ private static calculateStatistics; /** * 왜도 계산 */ private static calculateSkewness; /** * 첨도 계산 */ private static calculateKurtosis; /** * 기간 타입에 따른 날짜 필터 생성 */ private static buildDateFilter; }