redisai-js
Version:
A high-performance Typescript client for RedisAI
19 lines (18 loc) • 433 B
TypeScript
/// <reference types="node" />
export declare class Helpers {
/**
* Returns the index of the first occurrence of the maximum value along an array.
* @param arr
*/
argmax(arr: any): number;
/**
* TODO: document
* @param buffer
*/
normalizeRGB(buffer: any): Float32Array;
/**
* TODO: document
* @param buffer
*/
bufferToFloat32Array(buffer: Buffer): Float32Array;
}