how find a function which maps a vector to vector
显示 更早的评论
hi every one
i have an input vector with form of [a1 a2 a3], also i have an unknown function which gets the input vector. the output of function is a number that locates in the range with continuous values. Some numbers have more chance to be seen than the rest of the numbers.
for example if the function gets the [800 100 150] , the output can be any number between 6 and 14. but 12 has more chance to be seen.
so i have a vector of vectors with discrete numbers as an input with form of [a1 a2 a3; b1 b2 b3; ... ]
and i have a vectors of vectors with continuous numbers with Normal distribution. how can i find the function.
6 个评论
Rik
2019-7-4
So you want to reverse-engineer an ℝ3 to ℝ1 function? Unless you have a pretty good idea of what the function is doing anyway that might be very labor-intensive.
What kind of function is it? Mex? A p-file?
ali
2019-7-4
Guillaume
2019-7-4
There are of course an infinite number of functions that map a finite set of numbers to another finite set of numbers. Without more constraints, your question cannot be answered.
Rik
2019-7-4
If you have reasonable guess about the type of function based on the physical meaning of you values, you can use the fitting tools of Matlab to find parameters for that function. The first step is likely not something we can help with (especially if you don't provide any details). The second step is something we can help with.
As an example: if your inputs describe latitude, longitude, and height and your output describes the g at that point in space, we could try to help you find a function that works reasonably well.
As Guillaume stated, it is mathematically impossible to find a specific function for arbitrary data. It is however possible to find the parameters once you have a function.
Bjorn Gustavsson
2019-7-4
Since you rejected system identification and frequency analysis it seems that you are not looking for any type of dynamical behaviour, we have to assume that you have a simple function-fitting problem: I = f(x,y,z). For that you have as Guillaume pointed out an infinite number of functions to choose from - so you better start with simple approximations. If you have access to the function spap2 it might be a starting point to investigate the general behaviour of your function. If you think that the function might be well modeled with a 3-D polynomial you might get a first stab at what it might look like with this FEX-contriobution: polyfitn.
ali
2019-7-4
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Sparse State-Space Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!