The argument of maximum means the index at which the vector/function values is maximized.
Example
>> a = [3 2 1 -2 7]
a =
3 2 1 -2 7
>> [max_value, argmax] = max(a)
max_value =
7
argmax =
5
>> [min_value, argmin] = min(a)
min_value =
-2
argmin =
4
>>
References:
Arg max (Wikipedia)
how do i find argmax? (MathWorks)
Information about Electrical, Electronic, Communication and Computer Engineering 電機、電子、通訊、電腦資訊工程的學習筆記
相關資訊~生醫工程:StudyBME
聽力科技相關資訊:電子耳資訊小站
iOS程式語言:Study Swift
樹莓派和Python:Study Raspberry Pi
2018/09/04
2018/09/03
Matlab: feval() - Call functions with the function name as a string input
To call any Matlab function, use feval() with the function nameas the first input string and the parameters of the function as the other remaining input arguments.
For example, for sayHello.m:
function sayHello(name)
fprintf('Hello %s!\n',name);
Results of the command line with fevel():
>> sayHello('Matlab')
Hello Matlab!
>> feval('sayHello','World')
Hello World!
Reference:
feval() - Evaluation function (MathWorks)
For example, for sayHello.m:
function sayHello(name)
fprintf('Hello %s!\n',name);
Results of the command line with fevel():
>> sayHello('Matlab')
Hello Matlab!
>> feval('sayHello','World')
Hello World!
Reference:
feval() - Evaluation function (MathWorks)
2018/08/21
Mathematics for Machine Learning 機器學習的數學
Siraj Raval的影片介紹,機器學習主要有以下幾種的數學:
Calculus 微積分 - 最佳化
Linear Algebra 線性代數 - 實現演算法
Probability 機率 - 預估結果
Statistics 統計 - 找出目標
----
參考資料
Mathematics of Machine Learning (Siraj Raval)
Logistic regression (Wikipedia) 邏輯迴歸 (維基百科)
Calculus 微積分 - 最佳化
Linear Algebra 線性代數 - 實現演算法
Probability 機率 - 預估結果
Statistics 統計 - 找出目標
----
參考資料
Mathematics of Machine Learning (Siraj Raval)
Logistic regression (Wikipedia) 邏輯迴歸 (維基百科)
2018/08/09
Matlab: Find local maxima 求局部極大值
To find the local maximum values in Matlab, use findpeaks():
>> a = [7 -2 -5 8 -6 -3 4 9 6 3 -2 5 8 11 7 3 -5];
[peaks, items] = findpeaks(a);
>> peaks
peaks =
8 9 11
>> items
items =
4 8 14
>>
To find N large elements of a vector in Matlab in descending order, use maxK():
K>> [peaks, items] = maxk(a,5);
K>> peaks
peaks =
11 9 8 8 7
K>> items
items =
14 8 4 13 1
K>>
Reference:
findpeaks - Find local maxima (MathWorks)
>> a = [7 -2 -5 8 -6 -3 4 9 6 3 -2 5 8 11 7 3 -5];
[peaks, items] = findpeaks(a);
>> peaks
peaks =
8 9 11
>> items
items =
4 8 14
>>
To find N large elements of a vector in Matlab in descending order, use maxK():
K>> [peaks, items] = maxk(a,5);
K>> peaks
peaks =
11 9 8 8 7
K>> items
items =
14 8 4 13 1
K>>
Reference:
findpeaks - Find local maxima (MathWorks)
2018/08/07
2018/07/30
Matlab: Maximum element and index
To the the maximum value of an array and the index of the maximum value, use the max() function as below:
>> a = [1 4 5 7 3 2]
a =
1 4 5 7 3 2
>> [max, index] = max(a)
max =
7
index =
4
>>
Reference:
max - Maximum elements of an array (MathWorks)
>> a = [1 4 5 7 3 2]
a =
1 4 5 7 3 2
>> [max, index] = max(a)
max =
7
index =
4
>>
Reference:
max - Maximum elements of an array (MathWorks)
2018/07/04
Meta-Analysis 後設分析/整合分析
Meta-analysis (Wikipedia)
Meta-analysis (ScienceDirect)
整合分析 Meta-Analysis (國家教育研究院)
臨床醫師如何閱讀統合分析(Meta-analysis)的論文
童年經驗(1) 長大就好!? 42:20-43:15 (GoodTV 幸福學堂 錢玉芬)
Meta-analysis (ScienceDirect)
整合分析 Meta-Analysis (國家教育研究院)
臨床醫師如何閱讀統合分析(Meta-analysis)的論文
童年經驗(1) 長大就好!? 42:20-43:15 (GoodTV 幸福學堂 錢玉芬)
訂閱:
文章 (Atom)