Secundi

Secundi Government District => Herald => Topic started by: Silvanon on October 01, 2012, 02:47:41 PM

Title: New Inbreeding Percentage
Post by: Silvanon on October 01, 2012, 02:47:41 PM
I have now included on critter pedigree pages a calculation of their inbreeding percentage.  This percentage is calculated using the HARDIMAN'S METHOD as described here: http://www.highflyer.supanet.com/coefficient.htm (http://www.highflyer.supanet.com/coefficient.htm)  The inbreeding percent takes into account up to 15 generations, should they be available.

Hopefully the code is not buggy - it appears to be working correctly for the individuals I used as test cases.

The inbreeding percentage is calculated once, the first time someone accesses the critter's info page, and thereafter is stored in the system.  If the pet's pedigree is lengthy that first time access may take awhile as the system finishes calculated the inbreeding percentage.


Title: Re: New Inbreeding Percentage
Post by: Pinkshadow on October 01, 2012, 02:50:00 PM
Awesome Silv ! :D
Title: Re: New Inbreeding Percentage
Post by: YourLoveOnly on October 01, 2012, 02:51:25 PM
Awesome, thank you!
Title: Re: New Inbreeding Percentage
Post by: Silvanon on October 01, 2012, 03:32:25 PM
Since the code was pretty much already written, I've also included an Inbreeding Predictor.  It's found under Your Account -> Predict Inbreeding

In the form enter the System IDs of the two individuals in question, and the predictor will tell you how inbred offspring of that pairing would be.

Please don't abuse this feature, as it can be resource-draining when used on long pedigrees.
Title: Re: New Inbreeding Percentage
Post by: Ryuukokoro on October 01, 2012, 05:39:01 PM
Omg this is so amazing, Sil! :D And so fast!

Hee hee wow an inbreeding predictor! That is going to be major helpful next Quin season!
Title: Re: New Inbreeding Percentage
Post by: BabyKittenCandy on October 01, 2012, 05:48:17 PM

Wow Silv!! I said you were Superwoman! ;) This is amazing, thank-you so much!
Title: Re: New Inbreeding Percentage
Post by: SGA on October 01, 2012, 08:05:28 PM
Thank you Silv, this will make deciding who/what to offer on peoples trade threads so much easier :)
Title: Re: New Inbreeding Percentage
Post by: springacres on October 01, 2012, 09:48:33 PM
Awesome, Silv!  You rock so hard :)
Title: Re: New Inbreeding Percentage
Post by: Silvanon on October 01, 2012, 10:05:42 PM
Thanks guys!  I'm glad to hear the effort is well appreciated. :)
Title: Re: New Inbreeding Percentage
Post by: Ravvana on October 01, 2012, 11:27:04 PM
This is amazing, Silv, thank you! :) I know I'm silly for being so concerned with avoiding inbred pets, but it's one of my "things" and this makes life so, so much easier -- especially with Quinsta and Feli with huge pedigrees. I say again that you are a coding goddess; no idea how you manage to do all that you do XD
Title: Re: New Inbreeding Percentage
Post by: Silvanon on October 01, 2012, 11:54:19 PM
Awe thanks Rav!  I admit this one scared me going into it, and I'm still not sure how I'd have done Wright's Method, but Hardiman's Method turned out to be doable (and gives results that make more sense to me anyways), so yay! :)
Title: Re: New Inbreeding Percentage
Post by: Wildfilly94 on October 03, 2012, 10:11:11 AM
Wow, thank you SO much Silv!! I've done coding before, but even just making a button you can click to change the text to different colors iwth a radio button confuses me.. Your phenominal! <33
Title: Re: New Inbreeding Percentage
Post by: Willow on October 04, 2012, 03:06:04 AM
Thank you! :'D