@formant/data-sdk 0.0.104 → 0.0.106
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/data-sdk.es.js +97 -2
- package/dist/data-sdk.umd.js +6 -6
- package/dist/types/data-sdk/src/App.d.ts +1 -0
- package/dist/types/data-sdk/src/main.d.ts +1 -0
- package/dist/types/data-sdk/src/model/ILocalization.d.ts +3 -1
- package/dist/types/data-sdk/src/utils/aggregateFunctionUtils.d.ts +16 -0
- package/dist/types/data-sdk/src/utils/index.d.ts +2 -0
- package/dist/types/data-sdk/src/utils/numericAggregateUtils.d.ts +25 -0
- package/package.json +1 -1
|
@@ -83,6 +83,7 @@ export declare type DataPoint = [number, any];
|
|
|
83
83
|
export declare class App {
|
|
84
84
|
private static sendAppMessage;
|
|
85
85
|
static getCurrentModuleContext(): string | null;
|
|
86
|
+
static getCurrentModuleConfiguration(): Promise<string | undefined>;
|
|
86
87
|
static isModule(): boolean;
|
|
87
88
|
static goToTime(date: Date): void;
|
|
88
89
|
static goToDevice(deviceId: string): void;
|
|
@@ -8,6 +8,7 @@ export * from "./Manipulator";
|
|
|
8
8
|
export * from "./RequestDataChannel";
|
|
9
9
|
export * from "./App";
|
|
10
10
|
export * from "./KeyValue";
|
|
11
|
+
export * from "./utils";
|
|
11
12
|
export * from "./AudioPlayer";
|
|
12
13
|
export * from "./model/accessLevels";
|
|
13
14
|
export * from "./model/AccessLevel";
|
|
@@ -4,9 +4,11 @@ import { IOdometry } from "./IOdometry";
|
|
|
4
4
|
import { IPath } from "./IPath";
|
|
5
5
|
import { IPointCloud } from "./IPointCloud";
|
|
6
6
|
export interface ILocalization {
|
|
7
|
-
odometry
|
|
7
|
+
odometry?: IOdometry;
|
|
8
8
|
map?: IMap;
|
|
9
9
|
pointClouds?: IPointCloud[];
|
|
10
10
|
path?: IPath;
|
|
11
11
|
goal?: IGoal;
|
|
12
|
+
url?: string;
|
|
13
|
+
size?: number;
|
|
12
14
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { INumericAggregate } from "../model/INumericAggregate";
|
|
2
|
+
export declare function getVariance(a: INumericAggregate): number;
|
|
3
|
+
export declare function getStandardDeviation(a: INumericAggregate): number;
|
|
4
|
+
export declare function getMax(a: INumericAggregate): number;
|
|
5
|
+
export declare function getMin(a: INumericAggregate): number;
|
|
6
|
+
export declare function getAverage(a: INumericAggregate): number;
|
|
7
|
+
export declare function getSum(a: INumericAggregate): number;
|
|
8
|
+
export declare function getCount(a: INumericAggregate): number;
|
|
9
|
+
export declare const aggregateFunctionMap: {
|
|
10
|
+
min: typeof getMin;
|
|
11
|
+
max: typeof getMax;
|
|
12
|
+
"standard deviation": typeof getStandardDeviation;
|
|
13
|
+
average: typeof getAverage;
|
|
14
|
+
sum: typeof getSum;
|
|
15
|
+
count: typeof getCount;
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { INumericAggregate, IStreamAggregateData, IStreamTypeMap } from "../main";
|
|
2
|
+
declare type WireINumericSetAggregateMap = {
|
|
3
|
+
[id: string]: {
|
|
4
|
+
value: INumericAggregate;
|
|
5
|
+
unit?: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function getZeroINumericSet(): {
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
sum: number;
|
|
12
|
+
count: number;
|
|
13
|
+
sumOfSquares: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function reduceNumericStreamAggregates(stream: IStreamAggregateData<keyof IStreamTypeMap>): {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
sum: number;
|
|
19
|
+
count: number;
|
|
20
|
+
sumOfSquares: number;
|
|
21
|
+
};
|
|
22
|
+
export declare function reduceNumericSetStreamAggregates(stream: IStreamAggregateData<keyof IStreamTypeMap>, numericSetKey: string): INumericAggregate;
|
|
23
|
+
export declare function combineNumericAggregates(e1: INumericAggregate, e2: INumericAggregate): INumericAggregate;
|
|
24
|
+
export declare function combineNumericSetAggregates(e1: WireINumericSetAggregateMap, e2: WireINumericSetAggregateMap): WireINumericSetAggregateMap;
|
|
25
|
+
export {};
|