Is my QRB calculation right?

Moderators: Site Moderators, PandeGroup

Is my QRB calculation right?

Postby tmontney » Thu Aug 15, 2019 6:00 pm

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)?
tmontney
 
Posts: 33
Joined: Tue Sep 24, 2013 9:22 am

Re: Is my QRB calculation right?

Postby toTOW » Thu Aug 15, 2019 9:57 pm

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.
Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.

FAH-Addict : latest news, tests and reviews about Folding@Home project.

Image
User avatar
toTOW
Site Moderator
 
Posts: 8766
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France

Re: Is my QRB calculation right?

Postby tmontney » Fri Aug 16, 2019 2:26 pm

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.
tmontney
 
Posts: 33
Joined: Tue Sep 24, 2013 9:22 am


Return to Discussions of General-FAH topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron