ml-spectra-processing
    Preparing search index...

    Function xCostMatrix

    • Generate a cost matrix from two set of values using the function passed. by default it generate the cost matrix of absolute value of differences.

      Parameters

      • rowsArray: NumberArray

        Array of values that will represent the rows of the cost matrix.

      • columnsArray: NumberArray

        Array of values that will represent the columns of the cost matrix.

      • options: XCostMatrixOptions = {}

      Returns Matrix

      • A matrix instance with dimensions rowsArray.length x columnsArray.length