comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Help!!!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Help!!!! [message #90810 is a reply to message #90809] Sat, 18 April 2015 12:26 Go to previous messageGo to previous message
rryan%stsci.edu is currently offline  rryan%stsci.edu
Messages: 16
Registered: October 2014
Junior Member
On Saturday, April 18, 2015 at 1:25:30 PM UTC-4, alep...@gmail.com wrote:
> How to linear and robust adjustment ?
> LINFIT : y = A + Bx
> LINFIT result = (X, Y = MEASURE_ERRORS measure_errors )
> PRINT , result
>
> What data put in X , Y ?

It sounds like your professor is trying to get you to infer the Hubble constant from a bunch of data. He or she must have given you some data. Those data are x and y. At a fundamental level, it matters which is which, and you should try to understand that. Typically you have a "dependent" and "independent" variable. You need to realize which is which, of course I know, but I can't just tell you. Start by thinking what physically does Hubble constant represent? What are its units? km/s per Mpc. Now, what are the units of a slope of a line? Which variable should be x and should be y, now?

Once you get that sorted out, the IDL code is simple...

http://www.exelisvis.com/docs/LINFIT.html

result = linfit (x, y, measure_errors=dy)

where dy are the errors on y.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "Subtitle=" in Function graphics
Next Topic: mrd_struct failure for string values inside the VM

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:29 PDT 2025

Total time taken to generate the page: 0.00425 seconds