b**********t 发帖数: 37 | 1 Given two vectors V1 and V2 of doubles. The former represents values along
the x-axis and the later the values of a function f at those points. Write
a function that takes V1 and V2 and const double x as inputs and returns the
interpolated value of f(x). |
s*****r 发帖数: 773 | 2 regression?
Write
the
【在 b**********t 的大作中提到】 : Given two vectors V1 and V2 of doubles. The former represents values along : the x-axis and the later the values of a function f at those points. Write : a function that takes V1 and V2 and const double x as inputs and returns the : interpolated value of f(x).
|
b**********t 发帖数: 37 | 3 应该不是吧,这只是C++的题目啊。
【在 s*****r 的大作中提到】 : regression? : : Write : the
|
P*******e 发帖数: 1353 | 4 人家说了让你interpolation了啊,算法可以简单一些吧,不知道是不是可以assue是线性
【在 b**********t 的大作中提到】 : 应该不是吧,这只是C++的题目啊。
|
s*****r 发帖数: 773 | 5 让你用C++写程序算结果啊
【在 b**********t 的大作中提到】 : 应该不是吧,这只是C++的题目啊。
|
b**********t 发帖数: 37 | 6 说的是,那具体用什么方法呢?
【在 s*****r 的大作中提到】 : 让你用C++写程序算结果啊
|
r********g 发帖数: 1351 | 7 我的理解是在v1查找x,返回index,然后输出v2[index]? 那可以用binary search吗?
【在 b**********t 的大作中提到】 : 说的是,那具体用什么方法呢?
|
s*******s 发帖数: 1568 | 8 use langurange polynominals to do the numerical interpolation. If you don't
have background in numerical analysis, then you don't need to prepare this.
Write
the
【在 b**********t 的大作中提到】 : Given two vectors V1 and V2 of doubles. The former represents values along : the x-axis and the later the values of a function f at those points. Write : a function that takes V1 and V2 and const double x as inputs and returns the : interpolated value of f(x).
|
k***e 发帖数: 556 | 9 did not expect interview will include basic numerical algorithms. learned 10
years ago ;<
then next question is LU decomposition?
this world is so crazy!
t
【在 s*******s 的大作中提到】 : use langurange polynominals to do the numerical interpolation. If you don't : have background in numerical analysis, then you don't need to prepare this. : : Write : the
|
b**********t 发帖数: 37 | 10 拉格郎日??我高中倒是学过,是凑一个n阶多项式的公式,使得多项式在n个给定点取
到n个给定值。
t
【在 s*******s 的大作中提到】 : use langurange polynominals to do the numerical interpolation. If you don't : have background in numerical analysis, then you don't need to prepare this. : : Write : the
|
a**x 发帖数: 154 | |
a****l 发帖数: 8211 | 12 "langurange" may be sexy for an interview to showoff your "mathematical
knowledge", but I quite often find its results funny. The simple linear
method always works and does not give funny results.
t
【在 s*******s 的大作中提到】 : use langurange polynominals to do the numerical interpolation. If you don't : have background in numerical analysis, then you don't need to prepare this. : : Write : the
|