public static String getSamplingFunction(final SensorSamplingFunction type) {
        switch (type) {
            case UNSPECIFIED:
                return "Unspecified";
            case INSTANTANEOUS:
                return "Instantaneous";
            case ARITHMETIC_MEAN:
                return "Arithmetic Mean";
            case RMS:
                return "RMS";
            case MAXIMUM:
                return "Maximum";
            case MINIMUM:
                return "Minimum";
            case ACCUMULATED:
                return "Accumulated";
            case COUNT:
                return "Count";
            default:
                return "Unknown";
        }
    }
Returns the SensorSamplingFunction.

@param samplingFunction Sampling function.
mesh/src/main/java/no/nordicsemi/android/mesh/sensorutils/SensorSamplingFunction.java