Skip to content

Comments

copied new branch over#1

Open
tgermany20 wants to merge 3 commits intomainfrom
feature-std-dev
Open

copied new branch over#1
tgermany20 wants to merge 3 commits intomainfrom
feature-std-dev

Conversation

@tgermany20
Copy link
Owner

Extend the graphs to show the standard deviation as required by SR1.1.1

Copy link

@C-L-Grove C-L-Grove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, but I suggest changing some variable/ function names

return np.min(data, axis=0)


def s_dev(data):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclear function name, prefer something like standard_deviation

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the function necessary? Could you np.std to compute standard deviation

Copy link

@C-L-Grove C-L-Grove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already includes tests for:

  1. Standard deviation for one patient with multiple observations.
  2. Standard deviation function should raise an error if given empty data.
  3. Function should work with numpy arrays

Suggestion for other tests:
4. Standard deviation for two patients.
5. Graph includes a standard deviation graph.
6. Computing standard deviation where deviation is different from variance.
7. Standard deviation function should give correct result given negative inputs.

tgermany20 and others added 2 commits June 20, 2024 14:30
Co-authored-by: C-L-Grove <callum.grove@ukaea.uk>
Co-authored-by: C-L-Grove <callum.grove@ukaea.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants