Is my QRB calculation right?

Moderators: Site Moderators, FAHC Science Team

Post Reply
tmontney
Posts: 35
Joined: Tue Sep 24, 2013 9:22 am

Is my QRB calculation right?

Post by tmontney »

This is for a project I'm working on.

Code: Select all

function Get-QRB($base_points, $TimeAssigned, $TimeFinished, $Deadline){
	$k = 0.75

	$deadline_length = [Math]::Round(($TimeAssigned - $Deadline).Days, 1)
	$elapsed_time = [Math]::Round(($TimeAssigned - $TimeFinished).Hours / 24, 1)

	return $base_points * [Math]::Max(1, [Math]::Sqrt($k * $deadline_length / $elapsed_time))
}
I'm interfacing with the telnet client. With the recent change in QRB calculations, I want to make sure I get a constant points value, something I can store and apply calculations later to (say the K constant value changes). For instance, I'd refer to queue-info and its basecredit value, then store that for later. If I wanted to perform a QRB calculation later (or any other calculation), I could.

Is that a safe bet? Is my QRB calculation above correct? Are base points always Integer value (aka always a whole number)?
toTOW
Site Moderator
Posts: 6296
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: Is my QRB calculation right?

Post by toTOW »

Your formulas are correct : https://foldingathome.org/support/faq/p ... determined

Keep this in mind :
Deadline_length and Elapsed_time are measured in days to one decimal point.
In the old days of FAH, some projects were worth less than 1 point (0.6 for instance), but I think it has been a while that projects are using integer as base point.
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
tmontney
Posts: 35
Joined: Tue Sep 24, 2013 9:22 am

Re: Is my QRB calculation right?

Post by tmontney »

toTOW wrote:In the old days of FAH, some projects were worth less than 1 point (0.6 for instance), but I think it has been a while that projects are using integer as base point.
Sweet, thanks.
Post Reply