Skip to content

new ufloat_from_sample function #276

@Myles244

Description

@Myles244

Hello, I often use this package to analyse data from experiments, and I usually have a list of measurements of a variable. These measurements are usually normally distributed. So I combine them using the mean as the true value and the sample standard deviation divided by the square root of the number of measurements as the standard deviation of the mean. Something like this:
value=ufloat(numpy.mean(sample),numpy.std(sample,ddof=1)/numpy.sqrt(len(sample)))

In an attempt to save myself and hopefully a few others some time, would it be suitable to add a function uncertainties.unumpy.ufloat_from_sample()

ps I'm new to contributing to open source so if I've made any faux pas, I'm sorry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions