namespace TestNegWeights

TestNegWeights

Functions

Name
deftestmatch(name name, v1 v1, v2 v2, tolerance tolerance =1e-3)

Attributes

Name
h1
h2
defmeanmatch
defstddevmatch
tupleok
p1
p2

Functions Documentation

function testmatch

def testmatch(
    name name,
    v1 v1,
    v2 v2,
    tolerance tolerance =1e-3
)

Attributes Documentation

variable h1

h1 =  Histo1D(5, 0.0, 100.0);

variable h2

h2 =  Histo1D(5, 0.0, 100.0);

variable meanmatch

def meanmatch =  testmatch("means",    h1.mean(),   h2.mean());

variable stddevmatch

def stddevmatch =  testmatch("std devs", h1.stdDev(), h2.stdDev());

variable ok

tuple ok =  (stddevmatch and meanmatch);

variable p1

p1 =  Profile1D(5, 0.0, 100.0);

variable p2

p2 =  Profile1D(5, 0.0, 100.0);

Updated on 2022-08-08 at 20:05:55 +0100