本次的目的就是实现两个单波段影像的相关性分析,这里用到的函数主要是gee中的:
ee.Reducer.pearsonsCorrelation()
Creates a two-input reducer that computes Pearson's product-moment correlation coefficient and the 2-sided p-value test for correlation = 0.
创建一个双输入的还原器,计算Pearson的积点相关系数和相关=0的2边P值检验。
No arguments.
Returns: Reducer
ee.Reducer.spearmansCorrelation()
Creates a two-input reducer that computes the Spearman's rank-moment correlation. See SpearmansCorrelation (Apache Commons Math 3.6 API) for details.