Documentation
¶
Overview ¶
Package trustGraph is based on EigenTrust http://nlp.stanford.edu/pubs/eigentrust.pdf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
Certainty float32
Max int
Alpha float32
// contains filtered or unexported fields
}
Group represents a group of peers. Peers need to be given unique, int IDs. Certainty represents the threshold of RMS change at which the algorithm will escape. Max is the maximum number of loos the algorithm will perform before escaping (regardless of certainty). These default to 0.001 and 200 respectivly and generally don't need to be changed.
func (Group) Add ¶
Add will add or override a trust relationship. The first arg is the peer who is extending trust, the second arg is the peer being trusted (by the peer in the first arg). The 3rd arg is the amount of trust, which must be