Edit the singular values. By default, look at the variable svd_tolerance, and if it exists clip the singular values to that factor less than the largest. If the variable does not exist, use 10^-10 Definition at line 591 of file fitting_toolkit.py. 00591 : 00592 "zap unreasonably small singular values based on svd_tolerance" 00593 if hasattr(self, "svd_tolerance"): 00594 tol=self.svd_tolerance 00595 else: 00596 tol=1e-10 00597 clip=max(values)*tol 00598 for i in range(len(values)): 00599 if values[i]<clip: values[i]=0.0 00600 return values 00601 ##
|