applyExtFunction function

Apply external function to acceleration data.