Skip to content

Simpler way ? #18

@lpatiny

Description

@lpatiny

Could we have another method that calculates this internally ?

const diff = xValueExperimental.map((experimental) => {
  return xValuePredicted.map((predicted) => {
    return Math.abs(predicted - experimental);
  });
});

I don't know about a correct name but it would be something like:

abcd(experimental, predicted, {})

And one of the options could be a callback like
distance: (a,b) => Math.abs(a-b)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions