News:

SMF - Just Installed!

Main Menu

New Inbreeding Percentage

Started by Silvanon, October 01, 2012, 02:47:41 PM

Previous topic - Next topic

Silvanon

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  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.



Pinkshadow


YourLoveOnly


Silvanon

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.

Ryuukokoro

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!

BabyKittenCandy


Wow Silv!! I said you were Superwoman! ;) This is amazing, thank-you so much!

SGA

Thank you Silv, this will make deciding who/what to offer on peoples trade threads so much easier :)
Storm Chasers: Equipping/Training event : http://www.secundi.net/forum.php?topic=6559.0
Storm Chaser's Stat Allocation: http://www.secundi.net/forum.php?topic=8619.0
Storm Chasers: Customs Thread (Closed) : http://www.secundi.net/forum.php?topic=3691.0

springacres

Awesome, Silv!  You rock so hard :)


Silvanon

Thanks guys!  I'm glad to hear the effort is well appreciated. :)

Ravvana

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

Silvanon

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! :)

Wildfilly94

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

Willow