fluke.distr.utils

Utility module for fluke.distr.

Classes included in fluke.distr.utils

ModelBuilder

A class to build and return instances of a model class with specified arguments.

class fluke.distr.utils.ModelBuilder

class fluke.distr.utils.ModelBuilder(model_class: type, **kwargs)[source]

A class to build and return instances of a model class with specified arguments.

This class is useful for creating model instances in a flexible way, allowing for different configurations of the model without directly instantiating it.

model_class

The class of the model to be instantiated.

Type:

type

args

Positional arguments to pass to the model constructor.

Type:

tuple

kwargs

Keyword arguments to pass to the model constructor.

Type:

dict

build() Module[source]

Build and return an instance of the model.

Returns:

An instance of the model class initialized with the provided arguments.

Return type:

Module