cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2022 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Pool.Rank.Likelihood

Description

This module provides a maximum likelhood estimator for pool performance.

Copy & paste of the original implementation in

cardano-ledgererasshelleyimplsrcCardanoLedgerShelleyPoolRank.hs

The copy was made in order to reduce (transitive) dependencies.

Synopsis

Pool performance estimate from historical block production

data BlockProduction Source #

Information about block production of a pool in one epoch.

Constructors

BlockProduction

Fields

newtype PerformanceEstimate Source #

This is a estimate of the proportion of allowed blocks a pool will make in the future. It is used for ranking pools in delegation.

Instances

Instances details
Eq PerformanceEstimate Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Show PerformanceEstimate Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Generic PerformanceEstimate Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

NoThunks PerformanceEstimate Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

type Rep PerformanceEstimate Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

type Rep PerformanceEstimate = D1 (' MetaData "PerformanceEstimate" "Cardano.Pool.Rank.Likelihood" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "PerformanceEstimate" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unPerformanceEstimate") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Double )))

estimatePoolPerformance Source #

Arguments

:: SlottingParameters
-> DecentralizationLevel
-> Seq BlockProduction

Historical block production data. Most recent data comes first . Recent performance weighs more than past performance:

  • Block production from > 25 epochs ago has less than 10% influence on the likelihoods.
  • Block production from > 50 epochs ago has less than 1% influence on the likelihoods and can be ignored.
-> PerformanceEstimate

Estimate the performance of a pool from historical block production data.

Assumes that the SlottingParameters are constant through the given history.

Likelihood computations

newtype LogWeight Source #

Constructors

LogWeight

Instances

Instances details
Eq LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Num LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Ord LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Show LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Generic LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

NFData LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

NoThunks LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

type Rep LogWeight Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

type Rep LogWeight = D1 (' MetaData "LogWeight" "Cardano.Pool.Rank.Likelihood" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "LogWeight" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unLogWeight") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Float )))

newtype Likelihood Source #

Instances

Instances details
Eq Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Ord Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Show Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Generic Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Semigroup Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

Monoid Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

NFData Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

NoThunks Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

type Rep Likelihood Source #
Instance details

Defined in Cardano.Pool.Rank.Likelihood

type Rep Likelihood = D1 (' MetaData "Likelihood" "Cardano.Pool.Rank.Likelihood" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "Likelihood" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unLikelihood") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( StrictSeq LogWeight ))))