package
0.0.0-20240915062736-6f410cc57783
Repository: https://github.com/karma3labs/go-eigentrust.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Canonicalize scales sparse entries in-place so that their values sum to one.
CanonicalizeLocalTrust canonicalizes localTrust in-place, i.e.
CanonicalizeTrustVector canonicalizes trustVector in-place, i.e.
Compute computes EigenTrust scores.
DiscountTrustVector adjusts the given global trust vector by the negative trust given in the discounts vector.
ExtractDistrust extracts negative local trust from the given local trust, leaving only positive ones in the original.
NewConvergenceChecker creates a new convergence checker.
NewFlatTailChecker creates a new flat tail checker.
No description provided by the author
ParsePeerId parses s and returns the peer index.
ParseTrustLevel parses s as a non-negative trust level and returns it.
ReadLocalTrustFromCsv reads a local trust matrix from the given CSV file.
No description provided by the author
ReadTrustVectorFromCsv reads a trust vector from the given CSV file.
WithCheckFreq tells Compute to perform exit criteria checks every n iterations.
WithFlatTail (formerly the "flatTail" parameter) enables the flat-tail ranking stability check: It tells Compute to iterate until the trust ranking stabilizes, i.e.
WithFlatTailNumLeaders (formerly the "numLeaders" parameter) tells Compute to limit trust ranking stability check to the top n peers.
WithFlatTailStats (formerly the "flatTailStats" parameter) tells Compute to populate the given struct with flat-tail algorithm stats upon completion.
WithInitialTrust (formerly the "t0" parameter) tells Compute to start iteration at the given trust vector instead of the pre-trust vector.
WithIterations tells Compute to iterate exactly n times, regardless of other termination criteria.
WithMaxIterations tells Compute to iterate at most n times, even if the other termination criteria are not met.
WithMinIterations tells Compute to iterate at least n times, even if the other termination criteria are met.
WithResultIn (formerly the "t" parameter).

# Structs

ComputeOpts contains options for the Compute function.
ConvergenceChecker checks for convergence of trust vector series.
FlatTailChecker checks for a flat tail.

# Interfaces

CsvReader reads from a CSV file.

# Type aliases

ComputeOpt is one Compute option.
No description provided by the author