If we add one to the return, then you've got a number that's never negative and we can then use geometric returns.
然后加上1,你永远也得不到一个负数,然后我们对这个值求几何平均
Suppose I take a number. I'd like to add up all the digits inside of the number.
我可以用到刚刚提到的工具,来实现这个功能。
All velocities I see you will add a certain number to get the velocities according to you.
而我观察到的速度,你也要给它加上某个数值,来得到你观察到的速度
You have a nice grid pattern and you can use a city block metric to add up the number of blocks between people's doors.
整个城市呈格网状,你可以数数,人们相隔多少个街区。
When you add it to any number, it doesn't make a difference.
任何数加上它都没有变化
But there's an important thing going on here, if I in fact wanted to combine those into a string I should have told the machine to do that, and I can do that, by explicitly saying, take that, which is a number, then add it to that string.
但是这里有个很重要的事情,实际上想要把这些加到一个字符串里面去,我应该告诉计算机去做这个,我应该这么做,通过明确的输入,也就是把这个对象,一个数字,然后把它加到一个字符串里面去。
应用推荐