class_docstr: Particular IMM with an additional null class.
  The data is supplied together
  with a sample-related probability of being under the null.
class_docstr_tok: ["Particular","IMM","with","an","additional","null","class",".","The","data","is","supplied","together","with","a","sample-related","probability","of","being","under","the","null","."]
docstr: Set the null and prior densities as constant
  (over a  supposedly compact domain)
  
  Parameters
  ----------
  null_dens: float, optional
             constant for the null density
  prior_dens: float, optional
              constant for the prior density
docstr_tok: ["Set","the","null","and","prior","densities","as","constant","(","over","a","supposedly","compact","domain",")","Parameters","--","--","--","--","--","null_dens",":","float",",","optional","constant","for","the","null","density","prior_dens",":","float",",","optional","constant","for","the","prior","density"]
code: def set_constant_densities(self, null_dens=None, prior_dens=None):
      """
      Set the null and prior densities as constant
      (over a  supposedly compact domain)
  
      Parameters
      ----------
      null_dens: float, optional
                 constant for the null density
      prior_dens: float, optional
                  constant for the prior density
      """
      self.null_dens = null_dens
      self.prior_dens = prior_dens
  
imports: import math
  import numpy
  from scipy.special import gammaln
  from .bgmm import BGMM, detsh
label_desc: Use image node_id 2 for calling the MixedIMM obj's underlying member method code with example usage: obj.set_constant_densities(null_dens, prior_dens) without return types