docstr: Gives the CustomDistribution divide with the other factor.
  
  Parameters
  ----------
  other: CustomDistribution
      The CustomDistribution to be multiplied.
  
  Returns
  -------
  CustomDistribution or None:
                  if inplace=True (default) returns None
                  if inplace=False returns a new `CustomDistribution` instance.
  
  Example
  -------
  >>> from pgmpy.factors.distributions import CustomDistribution
  >>> from scipy.stats import multivariate_normal
  >>> sn_pdf1 = lambda x: multivariate_normal.pdf(
  ...                                     x=[x], mean=[0], cov=[[1]])
  >>> sn_pdf2 = lambda x1, x2: multivariate_normal.pdf(
  ...                 x=[x1, x2], mean=[0, 0], cov=[[1, 0], [0, 1]])
  >>> sn1 = CustomDistribution(variables=['x2'], distribution=sn_pdf1)
  >>> sn2 = CustomDistribution(variables=['x1', 'x2'],
  ...                          distribution=sn_pdf2)
  
  >>> sn3 = sn2.divide(sn1, inplace=False)
  >>> sn3.assignment(0, 0)
  0.3989422804014327
  
  >>> sn3 = sn2 / sn1
  >>> sn3.assignment(0, 0)
  0.3989422804014327
docstr_tok: ["Gives","the","CustomDistribution","divide","with","the","other","factor",".","Parameters","--","--","--","--","--","other",":","CustomDistribution","The","CustomDistribution","to","be","multiplied",".","Returns","--","--","--","-","CustomDistribution","or","None",":","if","inplace=True","(","default",")","returns","None","if","inplace=False","returns","a","new","`","CustomDistribution","`","instance",".","Example","--","--","--","-",">",">",">","from","pgmpy.factors.distributions","import","CustomDistribution",">",">",">","from","scipy.stats","import","multivariate_normal",">",">",">","sn_pdf1","=","lambda","x",":","multivariate_normal.pdf","(","...","x=","[","x","]",",","mean=","[","0","]",",","cov=","[","[","1","]","]",")",">",">",">","sn_pdf2","=","lambda","x1",",","x2",":","multivariate_normal.pdf","(","...","x=","[","x1",",","x2","]",",","mean=","[","0",",","0","]",",","cov=","[","[","1",",","0","]",",","[","0",",","1","]","]",")",">",">",">","sn1","=","CustomDistribution","(","variables=","[","'x2","'","]",",","distribution=sn_pdf1",")",">",">",">","sn2","=","CustomDistribution","(","variables=","[","'x1","'",",","'x2","'","]",",","...","distribution=sn_pdf2",")",">",">",">","sn3","=","sn2.divide","(","sn1",",","inplace=False",")",">",">",">","sn3.assignment","(","0",",","0",")","0.3989422804014327",">",">",">","sn3","=","sn2","\/","sn1",">",">",">","sn3.assignment","(","0",",","0",")","0.3989422804014327"]
code: def divide(self, other, inplace=True):
      """
      Gives the CustomDistribution divide with the other factor.
  
      Parameters
      ----------
      other: CustomDistribution
          The CustomDistribution to be multiplied.
  
      Returns
      -------
      CustomDistribution or None:
                      if inplace=True (default) returns None
                      if inplace=False returns a new `CustomDistribution` instance.
  
      Example
      -------
      >>> from pgmpy.factors.distributions import CustomDistribution
      >>> from scipy.stats import multivariate_normal
      >>> sn_pdf1 = lambda x: multivariate_normal.pdf(
      ...                                     x=[x], mean=[0], cov=[[1]])
      >>> sn_pdf2 = lambda x1, x2: multivariate_normal.pdf(
      ...                 x=[x1, x2], mean=[0, 0], cov=[[1, 0], [0, 1]])
      >>> sn1 = CustomDistribution(variables=['x2'], distribution=sn_pdf1)
      >>> sn2 = CustomDistribution(variables=['x1', 'x2'],
      ...                          distribution=sn_pdf2)
  
      >>> sn3 = sn2.divide(sn1, inplace=False)
      >>> sn3.assignment(0, 0)
      0.3989422804014327
  
      >>> sn3 = sn2 / sn1
      >>> sn3.assignment(0, 0)
      0.3989422804014327
      """
      if set(other.variables) - set(self.variables):
          raise ValueError(
              "Scope of divisor should be a subset of dividend"
          )
  
      return self._operate(other, "divide", inplace)
  
imports: import numpy
  from scipy import integrate
  from pgmpy.factors.distributions import BaseDistribution
label_desc: Use image node_id 15 for calling the CustomDistribution obj's underlying member method code with example usage: obj.divide(other, inplace) and returns: self