Skip to content

Where is move_nanstd? #390

Open
Open
@Xiams1921

Description

@Xiams1921

the docstring of move_std says: Moving window standard deviation along the specified axis, optionally
ignoring NaNs
.

how can I ignoring NaNs so the function do same thing like nanstd on each moving_window?

I find a function called bn.move_nanstd in old version, but I can't call it in 1.3.2 on linux,

for exmaple:

a = np.array([1, 2, 3, np.nan, 5, 6, 7, 8])
bn.move_std(a, 7) -> array([nan, nan, nan, nan, nan, nan, nan, nan])
bn.nanstd(a) -> 2.4411439272335804

however the result I want is:
bn.move_std(a, 7) -> array([nan, nan, nan, nan, nan, nan, nan, 2.4411439272335804])

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