/* Copyright (C) 2019-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk4itmin.ctr */ #ifndef DK4ITMIN_H_INCLUDED /** Avoid multiple inclusions. */ #define DK4ITMIN_H_INCLUDED 1 #line 10 "dk4itmin.ctr" /** @file dk4itmin.h Iteration algorithms for minimum search. Iteration can be used on functions unimodal on interval [a;b] only. This means the function must have exactly one local minimum on interval [a;b], no local maximum. To search for a maximum of f(x) simply search for the minimum of the 0-f(x) function. */ #ifndef DK4ITER_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4iter.h" #else #include #endif #endif #ifdef __cplusplus extern "C" { #endif /** Run iteration for minimum search. @param d Address of result array, 2 elements: x-value and y-value. @param pp Address of variable to store number of passes, may be NULL. @param fct Function to find minimum for. The function must be unimodal on [a;b], the dk4itmin_interval() function can not check this. @param ps Parameter set for function, may be NULL. @param a Left interval border. @param b Right interval border. Required: f(c)