You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
891 B
39 lines
891 B
// export R# package module type define for javascript/typescript language
|
|
//
|
|
// imports "Math" from "Darwinism";
|
|
//
|
|
// ref=Darwinism.Math@Darwinism, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
|
|
/**
|
|
* darwinism IPC parallel math
|
|
*
|
|
*/
|
|
declare namespace Math {
|
|
/**
|
|
* measure the average distance for the given dataset
|
|
*
|
|
*
|
|
* @param x -
|
|
* @param env -
|
|
*
|
|
* + default value Is ``null``.
|
|
*/
|
|
function average_distance(x: any, env?: object): number;
|
|
/**
|
|
*
|
|
* > this function only supports the cosine similarity score function.
|
|
*
|
|
* @param x -
|
|
* @param k -
|
|
*
|
|
* + default value Is ``16``.
|
|
* @param cutoff -
|
|
*
|
|
* + default value Is ``0.8``.
|
|
* @param env -
|
|
*
|
|
* + default value Is ``null``.
|
|
*/
|
|
function knn(x: any, k?: object, cutoff?: number, env?: object): object;
|
|
}
|