Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Dec 5, 2020
1 parent 19c7519 commit 704dda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/physarum/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
const (
sensorAngleMin = 0
sensorAngleMax = 120
sensorDistanceMin = 4

This comment has been minimized.

Copy link
@tartarza112244

tartarza112244 Mar 27, 2021

  • sensorDistanveMin = 0
sensorDistanceMin = 0
sensorDistanceMax = 64
rotationAngleMin = 0
rotationAngleMax = 120
Expand All @@ -17,7 +17,7 @@ const (
depositionAmountMin = 5
depositionAmountMax = 5
decayFactorMin = 0.1
decayFactorMax = 0.5
decayFactorMax = 0.1

attractionFactorMean = 1
attractionFactorStd = 0.25
Expand Down
4 changes: 2 additions & 2 deletions pkg/physarum/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func Image(w, h int, grids [][]float32, palette Palette, min, max, gamma float32
sort.Float64s(temp)
minValues[i] = 0
// minValues[i] = stat.Quantile(0.01, stat.Empirical, temp, nil)
maxValues[i] = float32(stat.Quantile(0.99, stat.Empirical, temp, nil))
maxValues[i] *= 2
maxValues[i] = float32(stat.Quantile(0.999, stat.Empirical, temp, nil))
maxValues[i] *= 1.5
c := palette[i]
fmt.Printf("%d #%02X%02X%02X %.3f\n", i, c.R, c.G, c.B, maxValues[i])
}
Expand Down

0 comments on commit 704dda7

Please sign in to comment.