bifacial_radiance.mismatch.mad_fn#
- bifacial_radiance.mismatch.mad_fn(data, axis='index')[source]#
Mean average deviation calculation for mismatch purposes.
- Parameters:
data (np.ndarray or pd.Series or pd.DataFrame) – Gtotal irradiance measurements. If data is a pandas.DataFrame, one MAD/Average is returned for each index, based on values across columns.
axis ({0 or 'index', 1 or 'columns'}, default 'index') –
Calculate mean average deviation across rows (default) or columns for 2D data
0, or ‘index’ : MAD calculated across rows.
1, or ‘columns’ : MAD calculated across columns.
- Returns:
scalar or pd.Series (return MAD / Average [%]. Scalar for a 1D array, Series for 2D.)
Equation: 1/(n^2*Gavg)*Sum Sum (abs(G_i - G_j)) * 100[%]