Skip to content

Function: mapValues()

ts
function mapValues(x, lookup): NeuroVol;

Defined in: src/stats/stats.ts:813

Map values in a volume using a lookup table.

Replaces values in the volume according to a lookup map.

Parameters

x

NeuroVol

The volume to transform

lookup

Map<number, number>

Map of old values to new values

Returns

NeuroVol

Volume with mapped values

Released under the MIT License.