本文介绍了高斯基函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

您能告诉我如何在二维空间中对高斯基函数建模以获得标量输出吗?

Can you please tell me how can I model a Gaussian Basis Function in a 2 Dimensional Space in order to obtain a scalar output?

我知道如何将其与标量输入一起应用,但是我不知道如何将其应用于二维矢量输入.我已经看到了许多让我感到困惑的变化.

I know how to apply this with a scalar input, but I don't understand how should I apply it to a 2 dimensional vector input. I've seen many variations of this that I am confused.

推荐答案

要从多元正态分布中抽样,请使用 MVNRND 函数.示例:

To sample from a multivariate normal distribution, use the MVNRND function from the Statistics Toolbox. Example:

MU = [2 3];                    %# mean
COV = [1 1.5; 1.5 3];          %# covariance (can be isotropic/diagonal/full)
p = mvnrnd(MU, COV, 1000);     %# sample 1000 2D points
plot(p(:,1), p(:,2), '.')      %# plot them

这篇关于高斯基函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 02:19