add skeleton for ir curve fitting

TODO: add generated functions