change default absent value to 0
This commit is contained in:
parent
5228ebccbe
commit
1f589633b7
|
@ -31,7 +31,7 @@ type AbsorbingMarkovChain struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAbsorbingMarkovChain() *AbsorbingMarkovChain {
|
func NewAbsorbingMarkovChain() *AbsorbingMarkovChain {
|
||||||
return &AbsorbingMarkovChain{WeightedDirectedGraph: simple.NewWeightedDirectedGraph(math.NaN(), math.NaN())}
|
return &AbsorbingMarkovChain{WeightedDirectedGraph: simple.NewWeightedDirectedGraph(math.NaN(), 0)}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *AbsorbingMarkovChain) IsValid() bool {
|
func (g *AbsorbingMarkovChain) IsValid() bool {
|
||||||
|
|
Loading…
Reference in New Issue