rename to f.go
This commit is contained in:
parent
4c6fb35ac2
commit
4d146dbcfb
|
@ -140,6 +140,8 @@ Note that these sed commands are just hacks, and won't parse e.g., `3.5K` correc
|
||||||
- Joint types
|
- Joint types
|
||||||
- Enums
|
- Enums
|
||||||
- [x] Fix correlation problem, by spinning up a new randomness thing every time some serial computation is done.
|
- [x] Fix correlation problem, by spinning up a new randomness thing every time some serial computation is done.
|
||||||
|
- [ ] Maintain *both* a more complex thing that's more featureful *and* the more simple multiplication of lognormals thing.
|
||||||
|
- [ ] Clean up error code. Right now only needed for division
|
||||||
- [ ] Dump samples to file
|
- [ ] Dump samples to file
|
||||||
- [ ] Represent samples/statistics in some other way
|
- [ ] Represent samples/statistics in some other way
|
||||||
- [ ] Perhaps use qsort rather than full sorting
|
- [ ] Perhaps use qsort rather than full sorting
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.nunosempere.com/NunoSempere/fermi/sample"
|
|
||||||
"git.nunosempere.com/NunoSempere/fermi/pretty"
|
"git.nunosempere.com/NunoSempere/fermi/pretty"
|
||||||
|
"git.nunosempere.com/NunoSempere/fermi/sample"
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
|
@ -348,8 +348,7 @@ func operateStackWithDist(stack Stack, new_dist Dist, op string) Stack {
|
||||||
|
|
||||||
func runRepl(stack Stack, reader *bufio.Reader) Stack {
|
func runRepl(stack Stack, reader *bufio.Reader) Stack {
|
||||||
|
|
||||||
|
replForLoop:
|
||||||
replForLoop:
|
|
||||||
for {
|
for {
|
||||||
new_line, _ := reader.ReadString('\n')
|
new_line, _ := reader.ReadString('\n')
|
||||||
words := strings.Split(strings.TrimSpace(new_line), " ")
|
words := strings.Split(strings.TrimSpace(new_line), " ")
|
||||||
|
@ -378,7 +377,7 @@ func runRepl(stack Stack, reader *bufio.Reader) Stack {
|
||||||
stack.old_dist = INIT_DIST
|
stack.old_dist = INIT_DIST
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
continue replForLoop
|
continue replForLoop
|
||||||
/* Variable assignment */
|
/* Variable assignment */
|
||||||
case words[0] == "=:" && len(words) == 2:
|
case words[0] == "=:" && len(words) == 2:
|
||||||
stack.vars[words[1]] = stack.old_dist
|
stack.vars[words[1]] = stack.old_dist
|
||||||
fmt.Printf("%s ", words[1])
|
fmt.Printf("%s ", words[1])
|
Loading…
Reference in New Issue
Block a user