Optimization problem for threshold calculation/identification
2 ビュー (過去 30 日間)
古いコメントを表示
Dear MATLAB enthusiasts,
I want to calculate a threshold for vector A so that B is maximal. In this case B is a bivariate variable with "+1" for "ok" and "-1" for "critical". I want to find a threshold for A so that B is "ok" 100% -> in the case below that would be 0.4. Finally I need B to be "ok" in 70% of the cases --> in the case below that would be 0.35.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164292/image.jpeg)
Is there a MATLAB function which can identify the threshold parameter for A so that in B the sum is max?
Plus I need a Threshold so that only 30% of the values are critical like 0.35 in this case – can that be done as well?
I would appreciate your help very much.
Thank you and best regards William
PS: I don't think that sorting is a solution I'm locking for due to my second question and the involvement of two vectors.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!