I have an injective function $f:N\mapsto \mathbb{R}^k$ with $N\subset \mathbb{R}^{k-d}$ open. Let $v_n\in \mathbb{R}^k$ is a sequence of random variable. I'd like to find $\hat x\in N$ such that \begin{equation*} \|f(\hat x)-v_n\| \end{equation*} as small as possible when $\|.\|$ denotes the Euclidean norm.
I know that if $f$ is linear then , i.e., $f(x)=Ax$ then the least square $\hat x=(A^TA)^{-1}A^Tv_n$ is the solution of my problem. Is it correct?
My question is: if $f$ is not necessary linear, how will I solve my problem? Any suggestion? Thank you in advance