当前位置:网站首页>P-norm (2-norm is Euclidean norm)
P-norm (2-norm is Euclidean norm)
2022-07-26 04:15:00 【Selvaggia】
Normalized matrix
p- Norm definition
common 1- norm 、2- norm ( Euclid Norm )
vecnorm and norm
vecnorm


application
Calculate the European distance. Don't recite the distance formula between two points foolishly , Directly a two norm is done
such as ,A=[1 1 ; 2 2 ; 3 3] It is a matrix with three rows and two columns , Lines represent points , Column means X and Y coordinate , Empathy ,B=[5 5 ; 6 6 ; 7 7].
Then calculate A and B Euclidean distance corresponding to three points , It can be used directly vecnorm ( A − B , 2 , 2 ) (A-B,2,2) (A−B,2,2)
No, no, No ,2016 Version cannot be used vecnorm
norm
norm For the parameter is vector Time and vecnorm equally
Calculating the Euclidean distance between two points can also
For matrix 2- norm No OK 了 


norm Normalized matrix
for j=1:n
b(:,j)=a(:,j)/norm(a(:,j)); % Vector programming
end
边栏推荐
- [oi knowledge] dichotomy, dichotomy concept, integer dichotomy, floating point dichotomy
- Dracoo master
- Small ball and box model, arrangement and combination
- How mantium uses deepspeed to implement low latency gpt-j reasoning on Amazon sagemaker
- Apple removed the last Intel chip from its products
- Firewall command simple operation
- Huawei issued another global convening order of "genius youth", and some people once gave up their annual salary of 3.6 million to join
- Synchronous FIFO based on shift register
- 工程师如何对待开源 --- 一个老工程师的肺腑之言
- `Oi problem solving ` ` leetcode '2040. The k-th minor product of two ordered arrays
猜你喜欢

Acwing刷题

苹果在其产品中拿掉了最后一颗Intel芯片

Huawei issued another global convening order of "genius youth", and some people once gave up their annual salary of 3.6 million to join

华为再发“天才少年”全球召集令,有人曾放弃360万年薪加入

How mantium uses deepspeed to implement low latency gpt-j reasoning on Amazon sagemaker

文献|关系研究能得出因果性结论吗

Working ideas of stability and high availability guarantee

Retail chain store cashier system source code management commodity classification function logic sharing

吴恩达机器学习课后习题——逻辑回归

This article takes you to graph transformers
随机推荐
(translation) the button position convention can strengthen the user's usage habits
Luoda Development -- the context of sidetone configuration
JS get some attributes of the object
Leetcode:1184. Distance between bus stops -- simple
苹果在其产品中拿掉了最后一颗Intel芯片
Recommendation Book Educational Psychology: a book for tomorrow's teachers~
Laravel8 implements interface authentication encapsulation using JWT
Introduction to UFS CLK gate
How to write the summary? (including 7 easily ignored precautions and a summary of common sentence patterns in 80% of review articles)
(翻译)网站流程图和用户流程图的使用时机
(translation) timing of website flow chart and user flow chart
Implementation of distributed lock
This article takes you to graph transformers
【SVN】一直出现 Please execute the ‘Cleanup‘ command,cleanup以后没有反应的解决办法
(翻译)按钮位置约定能强化用户使用习惯
构建关系抽取的动词源
In PHP, you can use the abs() function to turn negative numbers into positive numbers
2021 CIKM |GF-VAE: A Flow-based Variational Autoencoder for Molecule Generation
What are the duplicate check rules for English papers?
匿名函数的作用