indexSampler = function (frame, value) {
    return Math.round(frame.length / 2);
}
Convert coord in nd space to data
@param  {Array.<number>|Object.<string, number>} val
@return {Array.<number>|Object.<string, number>}