Skip to content

Commit

Permalink
docs: improve xBoxPlot jsdoc (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny authored Oct 1, 2024
1 parent 985caee commit ee58725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/x/xBoxPlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface XBoxPlot {
* Calculating the box plot of the array
* @param array - data
* @param options
* @returns - q1, median, q3, min, max
*/
export function xBoxPlot(
array: NumberArray,
Expand Down
4 changes: 3 additions & 1 deletion src/x/xBoxPlotWithOutliers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ export interface XBoxPlotWithOutliers {
}

/**
* Calculating the box plot of the array
* Calculating the box plot of the array with outliers
* Values are outliers if they are below Q1 - 1.5 * IQR or above Q3 + 1.5 * IQR
* @param array - data
* @param options
* @returns - q1, median, q3, min, max, outliers
*/
export function xBoxPlotWithOutliers(
array: NumberArray,
Expand Down

0 comments on commit ee58725

Please sign in to comment.