template<typename T_n , typename T_r , typename T_alpha , typename T_beta > 
  
  
      
        
          | return_type_t< T_r, T_alpha, T_beta > stan::math::beta_neg_binomial_lccdf  | 
          ( | 
          const T_n &  | 
          n,  | 
         
        
           | 
           | 
          const T_r &  | 
          r,  | 
         
        
           | 
           | 
          const T_alpha &  | 
          alpha,  | 
         
        
           | 
           | 
          const T_beta &  | 
          beta,  | 
         
        
           | 
           | 
          const double  | 
          precision = 1e-8,  | 
         
        
           | 
           | 
          const int  | 
          max_steps = 1e8  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Returns the log CCDF of the Beta-Negative Binomial distribution with given number of successes, prior success, and prior failure parameters. 
Given containers of matching sizes, returns the log sum of probabilities.
- Template Parameters
 - 
  
    | T_n | type of failure parameter  | 
    | T_r | type of number of successes parameter  | 
    | T_alpha | type of prior success parameter  | 
    | T_beta | type of prior failure parameter | 
  
   
- Parameters
 - 
  
    | n | failure parameter  | 
    | r | Number of successes parameter  | 
    | alpha | prior success parameter  | 
    | beta | prior failure parameter  | 
    | precision | precision for grad_F32, default \(10^{-8}\)  | 
    | max_steps | max iteration allowed for grad_F32, default \(10^{8}\)  | 
  
   
- Returns
 - log probability or log sum of probabilities 
 
- Exceptions
 - 
  
    | std::domain_error | if r, alpha, or beta fails to be positive  | 
    | std::invalid_argument | if container sizes mismatch  | 
  
   
Definition at line 43 of file beta_neg_binomial_lccdf.hpp.