Exemple #1
0
 def get_optical_path_map_lsq(self,order=10):
     """Return the optical path of the rays hitting the detector.
     
     *Atributes*
     
        """
     
     X,Y,Z=self.get_optical_path_data()    
     e,p=polyfit2d(X, Y, Z, order=order)
     return e,p
Exemple #2
0
    def get_optical_path_map_lsq(self, order=10):
        """Return the optical path of the rays hitting the detector.
        
        *Atributes*
        
           """

        X, Y, Z = self.get_optical_path_data()
        e, p = polyfit2d(X, Y, Z, order=order)
        return e, p
Exemple #3
0
    def get_optical_path_map_lsq(self, order=10):
        """Return a 2D polinomial describing the the optical path of the 
           rays hitting the detector.
        

        :param order: Order of the polynomial used to fit the data
        
        :return: tuple (e, p) where e es the rms error of the data when compared
           with the returned polynomial, and p is a 
           :class:`~pyoptools.misc.Poly2D.poly2d` instance.
        """

        X, Y, Z = self.get_optical_path_data()
        e, p = polyfit2d(X, Y, Z, order=order)
        return e, p