欧氏距离 [英] euclidean distance

查看:52
本文介绍了欧氏距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个关于两个一维信号之间的欧几里德距离的任务

如果输入为2个整数数组的形式,则平方根输出应为整数,因为平方根输出为float或double
谢谢

I''m doing a task about euclidean distance between two 1d signals

if the input is in the form of 2 arrays of integers should the output after square rooting be integer since square root outputs float or double
thanks

推荐答案

整数的平方根显然可以是浮点数,实际上,它的确经常会是浮点数.
The square root of an integer can obviously be a floating point number, and, in fact, will be, more often than not.


这篇关于欧氏距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆