scippuncertainty.mc.accumulator.Accumulator#

class scippuncertainty.mc.accumulator.Accumulator(*args, **kwargs)[source]#

Compute statistics on bootstrap results.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

add(sample)

Register a single sample.

add_from(other)

Merge results from other into self.

get()

Return the current result.

new()

Return a new accumulator of the same type as self.

add(sample)[source]#

Register a single sample.

Return type:

None

add_from(other)[source]#

Merge results from other into self.

Return type:

None

get()[source]#

Return the current result.

Return type:

Accumulated

new()[source]#

Return a new accumulator of the same type as self.

The new instance does not contain any samples even if self does.

Return type:

TypeVar(A, bound= Accumulator)