コード例 #1
0
 def set_func(self):
     if self.function in [
             'poly', 'polynomial', 'spline', 'legendre', 'chebyshev'
     ]:
         self.func = interfit(self.x_arr,
                              self.w_arr,
                              function=self.function,
                              order=self.order,
                              niter=self.niter,
                              thresh=self.thresh)
     if self.function == 'model':
         self.func = ModelSolution(self.x_arr,
                                   self.w_arr,
                                   sgraph=self.sgraph,
                                   xlen=self.xlen,
                                   yval=self.yval,
                                   order=self.order)