Skip to content

Commit

Permalink
Standard Error and Standard Deviation exposed in slice
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed May 5, 2020
1 parent 5979508 commit dedf6cb
Show file tree
Hide file tree
Showing 6 changed files with 1,652 additions and 23 deletions.
8 changes: 8 additions & 0 deletions src/cr/cube/cubepart.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ def scale_means_rows_margin(self):
def shape(self):
return self.counts.shape

@lazyproperty
def standard_deviation(self):
return np.array([row.standard_deviation for row in self._matrix.rows])

@lazyproperty
def standard_error(self):
return np.array([row.standard_error for row in self._matrix.rows])

@lazyproperty
def summary_pairwise_indices(self):
alpha = self._transforms_dict.get("pairwise_indices", {}).get("alpha", 0.05)
Expand Down
Loading

0 comments on commit dedf6cb

Please sign in to comment.