Skip to main content
Version: Next

mpaClassMetric()

function mpaClassMetric(sketch, childAreaMetric): RegBasedClassificationMetric[]

Given sketch for rbcsMpa with rbcs activity userAttributes, assumes mpa is a single zone mpa and returns metrics with mpa classification score

Parameters

ParameterTypeDescription
sketchNullSketchsketch with GEAR_TYPES (multi), BOATING (single), and AQUACULTURE (single) user attributes
childAreaMetricobjectarea metric for sketch
childAreaMetric.classIdnull | string-
childAreaMetric.extra?Record<string, JSONValue>-
childAreaMetric.geographyIdnull | string-
childAreaMetric.groupIdnull | string-
childAreaMetric.metricIdstring-
childAreaMetric.sketchIdnull | string-
childAreaMetric.valuenumber-

Returns

RegBasedClassificationMetric[]