Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = Table[{x, RandomReal[{-.1, .1}] + x^2}, {x, 0, 15}]
- lstplt = LinearModelFit[data, Table[x^i, {i, 2}], x]
- Plot[lstplt[x], {x, 0, 15}]
- reslist =
- Inner[List, {data}[[1, All, 1]], lstplt["FitResiduals"], List];
- Show[ListPlot[data], Plot[lstplt[x], {x, 0, 15}]]
- ListPlot[reslist]
- bres = Select[reslist, Abs[#[[2]]] > .07 &];
- gres = DeleteCases[reslist, Alternatives @@ bres];
- gpoints = gres[[All, 1]] [Intersection] reslist[[All, 1]];
- ListPlot[listtr3 = Select[data, gpoints~MemberQ~First[#] &]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement