
    k"g                     (   d dl mZmZmZ g dZ G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zy)    )	Aggregate
FloatFieldIntegerField)CovarPopCorrRegrAvgXRegrAvgY	RegrCountRegrInterceptRegrR2	RegrSlopeRegrSXXRegrSXYRegrSYYStatAggregatec                   .     e Zd Z e       Zd fd	Z xZS )r   c                 L    |r|st        d      t        | 	  |||||       y )NzBoth y and x must be provided.)output_fieldfilterdefault)
ValueErrorsuper__init__)selfyxr   r   r   	__class__s         f/var/www/html/djangosite/lib/python3.12/site-packages/django/contrib/postgres/aggregates/statistics.pyr   zStatAggregate.__init__   s1    =>>q|FG 	 	
    )NNN)__name__
__module____qualname__r   r   r   __classcell__r   s   @r   r   r      s    <L
 
r   r   c                       e Zd ZdZy)r   CORRNr    r!   r"   function r   r   r   r      s    Hr   r   c                         e Zd Zd fd	Z xZS )r   c                 B    |rdnd| _         t        | 	  ||||       y )N
COVAR_SAMP	COVAR_POP)r   r   )r(   r   r   )r   r   r   sampler   r   r   s         r   r   zCovarPop.__init__#   s$    (.KAfg>r   )FNN)r    r!   r"   r   r#   r$   s   @r   r   r   "   s    ? ?r   r   c                       e Zd ZdZy)r   	REGR_AVGXNr'   r)   r   r   r   r   (       Hr   r   c                       e Zd ZdZy)r	   	REGR_AVGYNr'   r)   r   r   r	   r	   ,   r1   r   r	   c                   "    e Zd ZdZ e       ZdZy)r
   
REGR_COUNTr   N)r    r!   r"   r(   r   r   empty_result_set_valuer)   r   r   r
   r
   0   s    H>Lr   r
   c                       e Zd ZdZy)r   REGR_INTERCEPTNr'   r)   r   r   r   r   6   s    Hr   r   c                       e Zd ZdZy)r   REGR_R2Nr'   r)   r   r   r   r   :   s    Hr   r   c                       e Zd ZdZy)r   
REGR_SLOPENr'   r)   r   r   r   r   >   s    Hr   r   c                       e Zd ZdZy)r   REGR_SXXNr'   r)   r   r   r   r   B       Hr   r   c                       e Zd ZdZy)r   REGR_SXYNr'   r)   r   r   r   r   F   r?   r   r   c                       e Zd ZdZy)r   REGR_SYYNr'   r)   r   r   r   r   J   r?   r   r   N)django.db.modelsr   r   r   __all__r   r   r   r   r	   r
   r   r   r   r   r   r   r)   r   r   <module>rF      s    @ @ 
I 
= ?} ?} }   M  ]  m m m r   