pinets 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pinets.min.browser.es.js +15 -15
- package/dist/pinets.min.browser.es.js.map +1 -1
- package/dist/pinets.min.browser.js +13 -13
- package/dist/pinets.min.browser.js.map +1 -1
- package/dist/pinets.min.cjs +13 -13
- package/dist/pinets.min.cjs.map +1 -1
- package/dist/pinets.min.es.js +15 -15
- package/dist/pinets.min.es.js.map +1 -1
- package/dist/types/Context.class.d.ts +1 -0
- package/dist/types/namespaces/matrix/methods/inv.d.ts +7 -0
- package/dist/types/namespaces/matrix/methods/pinv.d.ts +6 -0
- package/package.json +1 -1
|
@@ -74,6 +74,7 @@ export declare class Context {
|
|
|
74
74
|
* @param decimals - the number of decimals to precision to
|
|
75
75
|
* @returns the precision number
|
|
76
76
|
*/
|
|
77
|
+
private static readonly PRECISION_EPSILON;
|
|
77
78
|
precision(value: number, decimals?: number): number;
|
|
78
79
|
/**
|
|
79
80
|
* This function is used to apply special transformation to internal PineTS parameters and handle them as time-series
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { PineMatrixObject } from '../PineMatrixObject';
|
|
2
2
|
import { Context } from '../../../Context.class';
|
|
3
|
+
/**
|
|
4
|
+
* Gauss-Jordan elimination to compute the inverse of an NxN matrix.
|
|
5
|
+
* Uses partial pivoting for numerical stability.
|
|
6
|
+
* Returns a matrix of NaN if the matrix is singular.
|
|
7
|
+
*/
|
|
8
|
+
declare function inverse(matrix: number[][]): number[][];
|
|
9
|
+
export { inverse };
|
|
3
10
|
export declare function inv(context: Context): (id: PineMatrixObject) => PineMatrixObject;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { PineMatrixObject } from '../PineMatrixObject';
|
|
2
2
|
import { Context } from '../../../Context.class';
|
|
3
|
+
/**
|
|
4
|
+
* Moore-Penrose pseudoinverse.
|
|
5
|
+
* - Square matrix: pinv(A) = inv(A)
|
|
6
|
+
* - Tall matrix (m > n): pinv(A) = (A^T A)^-1 A^T
|
|
7
|
+
* - Wide matrix (m < n): pinv(A) = A^T (A A^T)^-1
|
|
8
|
+
*/
|
|
3
9
|
export declare function pinv(context: Context): (id: PineMatrixObject) => PineMatrixObject;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinets",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Run Pine Script anywhere. PineTS is an open-source transpiler and runtime that brings Pine Script logic to Node.js and the browser with 1:1 syntax compatibility. Reliably write, port, and run indicators or strategies on your own infrastructure.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Pine Script",
|