Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11151 > unrolled thread

Re: Fitting part of a List

Started byBill Rowe <readnews@sbcglobal.net>
First post2012-08-01 09:00 +0000
Last post2012-08-01 09:00 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Fitting part of a List Bill Rowe <readnews@sbcglobal.net> - 2012-08-01 09:00 +0000

#11151 — Re: Fitting part of a List

FromBill Rowe <readnews@sbcglobal.net>
Date2012-08-01 09:00 +0000
SubjectRe: Fitting part of a List
Message-ID<jvar7s$74m$1@smc.vnet.net>
On 7/30/12 at 10:14 PM, eppi2.0@freenet.de (Butterfly87) wrote:

>I have a set of data(63 pairs) of the form {x-Value, Intensity}
>imported to Mathematica. I also managed to extract the data pairs 5
>to 25 using the Take-function. I want to fit these data using the
>Fitfunction TS[q] and FindFit. I told Mathematica to follow this
>Input: FindFit[d2[q], TS[q], {{a, 1000}, {b, 1500}, {c, 0.008}}, q]

You are using q for two distinct purposes:

1) as the independent variable for your model TS[q]
2) as a known parameter to select a portion of your data d2[q]

You cannot use q for both of these purposes in a single call to FindFit.

Also, be aware ds2[q] is the function evaluated at q, not a
selection for a subset of your data. It is possible to use the
notation ds2[q] as a subscripted variable. But unless you data
is different than what you seem to be describing (an n x 2
array), even if you use this correctly as a subscripted variable
you would be choosing a single data point which clearly won't work.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web