TraitOdds¶
Namespace Nfty.Core.Stats in assembly Nfty.Core.
One variant's odds, both within its recipe and across the whole collection.
Constructors¶
TraitOdds(string, string, string, string, string, string, double, double, TraitRowKind)¶
public TraitOdds(string RecipeId, string RecipeName, string IngredientId, string IngredientName, string VariantId, string VariantName, double WithinRecipePercent, double OverallPercent, TraitRowKind Kind = TraitRowKind.Variant);
Parameters
RecipeId(string) - The owning recipe's id.RecipeName(string) - The owning recipe's name.IngredientId(string) - The layer's id.IngredientName(string) - The layer's name.VariantId(string) - The variant's id.VariantName(string) - The variant's name.WithinRecipePercent(double) - Share among that recipe's mints.OverallPercent(double) - Share of the whole collection — the recipe's own share folded in.Kind(TraitRowKind) - Whether the row is a variant, a color name or the layer being absent. For a color rowIngredientNameis the published trait type (Body Color) and the variant id and name are both the color name; for an absent row both areNone. Anything keyed by a real variant id must filter onTraitRowKind.Variant.
Properties¶
IngredientId¶
The layer's id.
IngredientName¶
The layer's name.
Kind¶
Whether the row is a variant, a color name or the layer being absent. For a color row IngredientName is the published trait type (Body Color) and the variant id and name are both the color name; for an absent row both are None. Anything keyed by a real variant id must filter on TraitRowKind.Variant.
OverallPercent¶
Share of the whole collection — the recipe's own share folded in.
RecipeId¶
The owning recipe's id.
RecipeName¶
The owning recipe's name.
VariantId¶
The variant's id.
VariantName¶
The variant's name.
WithinRecipePercent¶
Share among that recipe's mints.