mean

fun mean(vararg arrays: FloatArray, channels: Int = 1): FloatArray

Computes mean value for each channel of the provided arrays.

NOTE: might be migrated to multik in the future.

Return

an array of size channels containing mean value for each channel.

Parameters

arrays

input arrays. Size of each array should be divisible by the passed channels number.

channels

number of channels to compute mean value for.

fun FloatArray.mean(channels: Int = 1): FloatArray

Computes mean value for each channel of the array. Array size should be divisible by the passed channels number.

NOTE: might be migrated to multik in the future.

Return

an array of size channels containing mean value for each channel.

Parameters

channels

number of channels to compute mean value for.