Ejemplo n.º 1
0
 def _componentwise_distance(self,
                             dx,
                             opt=0,
                             theta=None,
                             return_derivative=False):
     if opt == 0:
         # Kriging step
         d = componentwise_distance(
             dx,
             self.options["corr"],
             self.nx,
             theta=theta,
             return_derivative=return_derivative,
         )
     else:
         # KPLS step
         d = componentwise_distance_PLS(
             dx,
             self.options["corr"],
             self.options["n_comp"],
             self.coeff_pls,
             theta=theta,
             return_derivative=return_derivative,
         )
     return d
Ejemplo n.º 2
0
 def _componentwise_distance(self,dx,opt=0):
     if opt == 0:
         # Kriging step
         d = componentwise_distance(dx,self.options['corr'],self.nx)
     else:
         # KPLS step
         d = componentwise_distance_PLS(dx,self.options['corr'],
                                             self.options['n_comp'],self.coeff_pls)
     return d
Ejemplo n.º 3
0
 def _componentwise_distance(self, dx, opt=0, theta=None, return_derivative=False):
     d = componentwise_distance_PLS(
         dx,
         self.options["corr"],
         self.options["n_comp"],
         self.coeff_pls,
         theta=theta,
         return_derivative=return_derivative,
     )
     return d
Ejemplo n.º 4
0
 def _componentwise_distance(self, dx, opt=0):
     d = componentwise_distance_PLS(dx, self.options['corr'].__name__,
                                    self.options['n_comp'], self.coeff_pls)
     return d
Ejemplo n.º 5
0
    def _componentwise_distance(self, dx, opt=0):

        d = componentwise_distance_PLS(
            dx, self.options["corr"], self.options["n_comp"], self.coeff_pls
        )
        return d
Ejemplo n.º 6
0
    def _componentwise_distance(self, dx, opt=0):

        d = componentwise_distance_PLS(dx, self.corr, self.n_comp,
                                       self.coeff_pls)
        return d