def __init__(self, f, s, a=0, b=1): # function to approximate self.f = f # sorting class self.s = s self.tree = t(-1.0, a, b) self.error_list = [] self.dof_list = []
def __init__(self, f, s, a=0, b=1): self.f = f self.s = s self.tree = t(-1, a, b) self.tree_hp = Tree_1D_hp(-1, a, b) self.error_list = [] self.dof_list = [] from error_functionals import TwoNormOrth self.errorClass = TwoNormOrth(self.f)
def __init__( self, f, a = 0, b = 1, d = 1, graph = 0): self.f = f self.trees = [t(-1, a, b)] self.d = d self.graph = graph self.errorClass = TwoNorm( self.f)