# # Copyright 2022 Philipp Schönberger - mail@phschoen.de # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # See . function minis = local_minimas( D ) minis = [] for i = [1:length(D)-2] if D(i) > D(i+1) && D(i+1) < D(i+2) minis = [minis (i+1)] endif end end