original_docstring: 
          Generate random samples of cyclone initial parameters.
  
          :param int ns: Number of samples to generate.
          :param str sample_parameter_path: Path to a file to save the
                                            sampled parameter values to.
  
          :returns: The sample values.
          :raises ValueError: If ns <= 0.
  
          
docstring: Generate random samples of cyclone initial parameters.
docstring_tokens: Generate random samples of cyclone initial parameters .
code: def generateSamples(self, ns, sample_parameter_path=None):
          """
          Generate random samples of cyclone initial parameters.
  
          :param int ns: Number of samples to generate.
          :param str sample_parameter_path: Path to a file to save the
                                            sampled parameter values to.
  
          :returns: The sample values.
          :raises ValueError: If ns <= 0.
  
          """
  
          if ns <= 0:
              raise ValueError, 'invalid input on ns: number of sample cannot be zero or negative'
  
          unif_s = scipy.rand(ns)
  
          ind_kdf = self.xacy[:, 1].searchsorted(unif_s)
          self.sample = self.xacy[ind_kdf, 0]
  
          if sample_parameter_path:
              flSaveFile(sample_parameter_path, self.sample)
          else:
              return self.sample
code_tokens: def generateSamples ( self , ns , sample_parameter_path = None ) : if ns <= 0 : raise ValueError , 'invalid input on ns: number of sample cannot be zero or negative' unif_s = scipy . rand ( ns ) ind_kdf = self . xacy [ : , 1 ] . searchsorted ( unif_s ) self . sample = self . xacy [ ind_kdf , 0 ] if sample_parameter_path : flSaveFile ( sample_parameter_path , self . sample ) else : return self . sample
short_docstring: Generate random samples of cyclone initial parameters.
short_docstring_tokens: Generate random samples of cyclone initial parameters .
comment: """
          Generate random samples of cyclone initial parameters.
  
          :param int ns: Number of samples to generate.
          :param str sample_parameter_path: Path to a file to save the
                                            sampled parameter values to.
  
          :returns: The sample values.
          :raises ValueError: If ns <= 0.
  
          """