arjeneh / jpowder

Automatically exported from code.google.com/p/jpowder
1 stars 0 forks source link

auto rescaling two plots #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Use least-squares for auto rescaling.

Approximately something like this:

Say y^1_i is the i'th data point of data set 1 
Say y^2_i is the i'th data point of data set 2 

Then minimize the following figure of merit

sum over i of (y^1_i - S*y^2_i + B)^2

where S is the scale applied to dataset 2 and B is the
value dataset 2 is moved

Original issue reported on code.google.com by anders.m...@stfc.ac.uk on 19 Aug 2010 at 3:49

GoogleCodeExporter commented 9 years ago
Attached a pdf doc sketching an algorithm for auto rescaling using
least squares figure-of-merit between curves. 

Also noticed that in the current version of Jpowder3D the 'apply' button is 
missing (which is present in version 1.0) from the 'rescale & move' tool 

Original comment by anders.m...@stfc.ac.uk on 20 Sep 2010 at 6:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by anders.m...@stfc.ac.uk on 20 Jan 2011 at 7:20