class_docstr: Standard GMM.
  
  this class contains the following members
  k (int): the number of components in the mixture
  dim (int): is the dimension of the data
  prec_type = 'full' (string) is the parameterization
            of the precisions/covariance matrices:
            either 'full' or 'diagonal'.
  means: array of shape (k,dim):
        all the means (mean parameters) of the components
  precisions: array of shape (k,dim,dim):
             the precisions (inverse covariance matrix) of the components
  weights: array of shape(k): weights of the mixture
  
  fixme
  -----
  no copy method
class_docstr_tok: ["Standard","GMM",".","this","class","contains","the","following","members","k","(","int",")",":","the","number","of","components","in","the","mixture","dim","(","int",")",":","is","the","dimension","of","the","data","prec_type","=","'full","'","(","string",")","is","the","parameterization","of","the","precisions\/covariance","matrices",":","either","'full","'","or","'diagonal","'",".","means",":","array","of","shape","(","k",",","dim",")",":","all","the","means","(","mean","parameters",")","of","the","components","precisions",":","array","of","shape","(","k",",","dim",",","dim",")",":","the","precisions","(","inverse","covariance","matrix",")","of","the","components","weights",":","array","of","shape","(","k",")",":","weights","of","the","mixture","fixme","--","--","-","no","copy","method"]
docstr: essentially check that x.shape[1]==self.dim
  
  x is returned with possibly reshaping
docstr_tok: ["essentially","check","that","x.shape","[","1","]","==self.dim","x","is","returned","with","possibly","reshaping"]
code: def check_x(self, x):
      """
      essentially check that x.shape[1]==self.dim
  
      x is returned with possibly reshaping
      """
      if np.size(x) == x.shape[0]:
          x = np.reshape(x, (np.size(x), 1))
      if x.shape[1] != self.dim:
          raise ValueError("incorrect size for x")
      return x
  
imports: import numpy
  from scipy.linalg import eigvalsh
label_desc: Use image node_id 4 for calling the GMM obj's underlying member method code with example usage: obj.check_x(x) and returns: x