function dimToZeroBase (dim) {
    // TODO: find a better way, maybe lastDimToZeroBase could apply to more cases.
    return lastDimToZeroBase([[], dim])[1]
  }
Attach a transform function to math.quantileSeq
Adds a property transform containing the transform function.

This transform changed the `dim` parameter of function std
from one-based to zero based