class_docstr: Class for the manifold of Dirichlet distributions.
  
  This is Dirichlet = :math:`(R_+^*)^dim`, the positive quadrant of the
  dim-dimensional Euclidean space.
  
  Attributes
  ----------
  dim : int
      Dimension of the manifold of Dirichlet distributions.
class_docstr_tok: ["Class","for","the","manifold","of","Dirichlet","distributions",".","This","is","Dirichlet","=",":","math",":","`","(","R_+^","*",")","^dim","`",",","the","positive","quadrant","of","the","dim-dimensional","Euclidean","space",".","Attributes","--","--","--","--","--","dim",":","int","Dimension","of","the","manifold","of","Dirichlet","distributions","."]
docstr: Sample from the Dirichlet distribution.
  
  Sample from the Dirichlet distribution with parameters provided
  by point. This gives n_samples points in the simplex.
  
  Parameters
  ----------
  point : array-like, shape=[..., dim]
      Point representing a Dirichlet distribution.
  n_samples : int
      Number of points to sample for each set of parameters in point.
      Optional, default: 1.
  
  Returns
  -------
  samples : array-like, shape=[..., n_samples, dim]
      Sample from the Dirichlet distributions.
docstr_tok: ["Sample","from","the","Dirichlet","distribution",".","Sample","from","the","Dirichlet","distribution","with","parameters","provided","by","point",".","This","gives","n_samples","points","in","the","simplex",".","Parameters","--","--","--","--","--","point",":","array-like",",","shape=","[","...",",","dim","]","Point","representing","a","Dirichlet","distribution",".","n_samples",":","int","Number","of","points","to","sample","for","each","set","of","parameters","in","point",".","Optional",",","default",":","1",".","Returns","--","--","--","-","samples",":","array-like",",","shape=","[","...",",","n_samples",",","dim","]","Sample","from","the","Dirichlet","distributions","."]
code: def sample(self, point, n_samples=1):
      """Sample from the Dirichlet distribution.
  
      Sample from the Dirichlet distribution with parameters provided
      by point. This gives n_samples points in the simplex.
  
      Parameters
      ----------
      point : array-like, shape=[..., dim]
          Point representing a Dirichlet distribution.
      n_samples : int
          Number of points to sample for each set of parameters in point.
          Optional, default: 1.
  
      Returns
      -------
      samples : array-like, shape=[..., n_samples, dim]
          Sample from the Dirichlet distributions.
      """
      return self._scp_rv.rvs(point, n_samples)
  
imports: import math
  import numpy
  from scipy.optimize import minimize
  from scipy.stats import dirichlet
  import geomstats.backend
  from geomstats.algebra_utils import from_vector_to_diagonal_matrix
  from geomstats.geometry.base import VectorSpaceOpenSet
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.riemannian_metric import RiemannianMetric
  from geomstats.information_geometry.base import InformationManifoldMixin, ScipyMultivariateRandomVariable
  from geomstats.numerics.bvp import ScipySolveBVP
  from geomstats.numerics.geodesic import ExpODESolver, LogODESolver
  from geomstats.numerics.ivp import ScipySolveIVP
  from geomstats.vectorization import repeat_out
label_desc: Use image node_id 6 for calling the DirichletDistributions obj's underlying member method code with example usage: obj.sample(point, n_samples) and returns: self