Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/matrix/matrixAbsoluteMedian.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { xMedian } from '../x/index.ts';

/**

Check warning on line 5 in src/matrix/matrixAbsoluteMedian.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @returns declaration
* Returns the median of the absolute matrix.
* @param matrix

Check warning on line 7 in src/matrix/matrixAbsoluteMedian.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "matrix" description
*/
export function matrixAbsoluteMedian(matrix: DoubleMatrix): number {
const nbColumns = matrix[0].length;
Expand Down
3 changes: 2 additions & 1 deletion src/matrix/matrixAutoCorrelation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { xCorrelation } from '../x/index.ts';

export function matrixAutoCorrelation(

Check warning on line 5 in src/matrix/matrixAutoCorrelation.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc comment
matrix: DoubleMatrix,
index = 0,
): Float64Array<ArrayBuffer> {
Expand Down
4 changes: 1 addition & 3 deletions src/matrix/matrixBoxPlot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { DoubleArray } from 'cheminfo-types';

import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleArray, DoubleMatrix } from 'cheminfo-types';

export interface MatrixBoxPlot {
q1: Float64Array;
Expand All @@ -10,7 +8,7 @@
max: Float64Array;
}

export function matrixBoxPlot(matrix: DoubleMatrix): MatrixBoxPlot {

Check warning on line 11 in src/matrix/matrixBoxPlot.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc comment
const nbRows = matrix.length;
const nbColumns = matrix[0].length;
if (nbRows < 5) {
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixCenterZMean.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { matrixCreateEmpty } from './matrixCreateEmpty.ts';

/**

Check warning on line 5 in src/matrix/matrixCenterZMean.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @returns declaration
* Center mean of matrix columns.
* @param matrix - matrix [rows][cols]
*/
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixCheck.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

export function matrixCheck(data: DoubleMatrix): void {

Check warning on line 3 in src/matrix/matrixCheck.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc comment
if (data.length === 0 || data[0].length === 0) {
throw new RangeError('matrix must contain data');
}
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixCheckRanges.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

export interface SubmatrixBoundaries {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixColumnsCorrelation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { DoubleMatrix } from 'cheminfo-types';
import { Matrix } from 'ml-matrix';

import type { DoubleMatrix } from '../types/index.ts';
import { xCorrelation } from '../x/index.ts';

/**

Check warning on line 6 in src/matrix/matrixColumnsCorrelation.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @returns declaration
* Calculates a correlation matrix based on the columns of the initial matrix.
* @param A - matrix [rows][cols]
*/
Expand Down
3 changes: 2 additions & 1 deletion src/matrix/matrixCreateEmpty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import type {
NumberArrayConstructor,
NumberArrayType,
Expand Down Expand Up @@ -32,7 +33,7 @@
ArrayConstructor?: ArrayConstructorType;
}

/**

Check warning on line 36 in src/matrix/matrixCreateEmpty.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @returns declaration
* Create a new matrix based on the size of the current one or by using specific dimensions.
* @param options
*/
Expand Down
3 changes: 1 addition & 2 deletions src/matrix/matrixHistogram.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { DataXY } from 'cheminfo-types';
import type { DataXY, DoubleMatrix } from 'cheminfo-types';

import type { DoubleMatrix } from '../types/index.js';
import type { XHistogramOptions } from '../x/index.ts';
import { xHistogram } from '../x/index.ts';

Expand Down
3 changes: 2 additions & 1 deletion src/matrix/matrixMedian.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { xMedian } from '../x/index.ts';

import { matrixToArray } from './matrixToArray.ts';
Expand Down
3 changes: 1 addition & 2 deletions src/matrix/matrixMinMaxAbsoluteZ.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { DoubleMatrix } from '../types/index.ts';

import type { DoubleMatrix } from 'cheminfo-types';
/**
* Get min and max of the absolute values of Z.
* @param matrix - matrix [rows][cols].
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixMinMaxZ.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { matrixCheck } from './matrixCheck.ts';

Expand Down
3 changes: 2 additions & 1 deletion src/matrix/matrixNoiseStandardDeviation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { xNoiseStandardDeviation } from '../x/index.ts';

import { matrixToArray } from './matrixToArray.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixPQN.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { DoubleMatrix } from 'cheminfo-types';
import { Matrix } from 'ml-matrix';

import type { DoubleMatrix } from '../types/index.ts';
import { xMedian } from '../x/index.ts';

export interface MatrixPQNOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixSetSubMatrix.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { matrixCheckRanges } from './matrixCheckRanges.ts';

Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixToArray.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { matrixCheck } from './matrixCheck.ts';

Expand Down
3 changes: 2 additions & 1 deletion src/matrix/matrixZRescale.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import type {
DoubleArrayConstructor,
DoubleArrayType,
Expand Down
2 changes: 1 addition & 1 deletion src/matrix/matrixZRescalePerColumn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DoubleMatrix } from '../types/index.ts';
import type { DoubleMatrix } from 'cheminfo-types';

import { matrixCreateEmpty } from './matrixCreateEmpty.ts';

Expand Down
3 changes: 0 additions & 3 deletions src/types/DoubleMatrix.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './DataReIm.ts';
export * from './DataXReIm.ts';
export * from './DoubleMatrix.ts';
export * from './Point.ts';
Loading