squiggle.c

Self-contained Monte Carlo estimation in C99
Log | Files | Refs | README

DateCommit messageAuthorFiles+-
2024-03-02 17:57remake & save new exampleNunoSempere15+1-0
2024-02-25 02:44add slightly custom mixture exampleNunoSempere2+34-0
2024-02-25 02:33very small division tweaksNunoSempere2+3-2
2024-02-08 14:42fix printf template stringNunoSempere1+7-7
2024-02-08 14:39change stats to markdown formatNunoSempere1+9-10
2024-02-07 18:44add possible gotcha to folk wisdom fileNunoSempere3+86-139
2024-02-06 15:49fix: display histogram upper bound correctlyNunoSempere1+1-1
2024-02-06 12:28tweak 90% histogram displayNunoSempere15+13-3
2024-02-02 17:06remove histogram caveat after reviewing; style tweaksNunoSempere2+1-4
2024-02-02 17:05make formatNunoSempere1+26-23
2024-02-02 17:03look through histogram function to convince myself of correctnessNunoSempere1+3-9
2024-02-02 14:59clean up README a bit moreNunoSempere1+5-9
2024-02-02 14:56further README cleanupNunoSempere1+2-2
2024-02-02 14:51add type of functions to the READMENunoSempere9+203-26
2024-02-01 19:54continue with big refactorNunoSempere26+64-390
2024-02-01 19:26remove functionalityNunoSempere1+11-230
2024-02-01 19:24big README refactorNunoSempere3+506-358
2024-01-31 14:35give up on text alignmentNunoSempere1+2-2
2024-01-31 14:31fix: alignmentNunoSempere1+2-2
2024-01-31 14:27remakeNunoSempere15+0-0
2024-01-31 14:27fix: x[i] -> xs[i] bugNunoSempere1+2-2
2024-01-31 14:26display # of values above and below 90% confidence intervalNunoSempere1+14-7
2024-01-31 14:19fix: add type to squiggle_more.h; fix typeNunoSempere2+4-2
2024-01-31 14:17tweak: add decimal points tweak to original histogram functionNunoSempere1+6-11
2024-01-31 14:15readme tweaks; add 90% histogram functionNunoSempere2+87-1
2024-01-31 08:49docs & improve histogram functionNunoSempere2+40-13
2024-01-30 19:09increase precision a bitNunoSempere16+4-4
2024-01-30 17:27update bin size depending on bin widthNunoSempere1+13-1
2024-01-30 15:27switch to using calloc (initializes memory to zero)NunoSempere1+1-1
2024-01-30 15:24rename variableNunoSempere2+2-2
2024-01-30 15:23add histogram functionality; recompileNunoSempere27+1000214-4
2024-01-30 13:52Savepoint plottingNunoSempere4+66-17
2024-01-30 13:03continue tweaking gnuplot terminal outputNunoSempere2+24-7
2024-01-30 12:54some modificationsNunoSempere3+34-0
2024-01-30 12:46add some gnuplot commandsNunoSempere4+1000041-0
2024-01-30 12:28fix typo and remakeNunoSempere16+1-1
2024-01-30 12:27add a few stats functionsNunoSempere2+32-1
2024-01-29 17:36make build passNunoSempere20+0-0
2024-01-29 17:35continue minimizing nested functionsNunoSempere3+15-10
2024-01-29 17:29use new pattern to reduce nested functions extensionNunoSempere5+118-135
2024-01-29 17:20new pattern: define sampler and then sample from itNunoSempere1+16-27
2024-01-29 17:20add some more to-dosNunoSempere1+2-0
2024-01-28 16:48add comment; recompileNunoSempere16+2-0
2024-01-21 10:47formatting tweakNunoSempere1+8-4
2024-01-21 10:44streamline fermi estimation a littleNunoSempere3+111-98
2024-01-20 20:08tweak READMENunoSempere1+3-6
2024-01-20 18:48update fermi exampleNunoSempere3+66-109
2024-01-20 13:30formatting pass, upkeepNunoSempere6+190-183
2024-01-20 13:28add fermi paradox to examplesNunoSempere5+217-0
2024-01-20 13:02add fermi paradox exampleNunoSempere2+131-8
2024-01-13 12:01readme tweakNunoSempere1+2-0
2024-01-13 11:47reformat remakeNunoSempere16+1-1
2024-01-13 11:47add comment about cache analysisNunoSempere1+29-7
2024-01-13 00:05formatting pass; makefile tweaksNunoSempere17+5-3
2024-01-12 23:50remove loop unrolling againNunoSempere1+0-17
2024-01-12 23:50save squiggle_more tweaksNunoSempere1+21-4
2024-01-12 22:55formatting pass.NunoSempere1+6-6
2024-01-12 22:53add more comments, undo loop unrolling.NunoSempere17+6-32
2024-01-12 19:41add failed example of loop unrollingNunoSempere17+36-0
2024-01-12 18:08add comment on size of the C stackNunoSempere1+1-1
2024-01-12 18:02add comments on cacheNunoSempere19+18-10
2024-01-12 15:58try adding quotient as private variableNunoSempere1+3-1
2024-01-12 15:52tweak: don't use unneeded pointers to get cache math rightNunoSempere16+7-7
2024-01-11 23:33add code comment about cache sharingNunoSempere1+4-1
2024-01-11 23:23seed cache box name, make "quotient" private varNunoSempere1+11-10
2024-01-11 23:11test i there might be some "false sharing" going on with openmpNunoSempere16+14-7
2023-12-14 13:02don't make quickselect "destructive"; recompileNunoSempere23+13-3
2023-12-14 12:37rename sample_normal_from_90_ci and add to squiggle.hNunoSempere2+4-3
2023-12-11 11:08Increase clarity of README and fix typosNunoSempere1+7-7
2023-12-09 19:04README tweaksNunoSempere1+3-2
2023-12-09 19:02make binariesNunoSempere21+0-0
2023-12-09 19:02tweak results of formatting passNunoSempere2+4-20
2023-12-09 19:00run formatting passNunoSempere13+54-30
2023-12-09 18:59document compiler warningsNunoSempere2+8-3
2023-12-09 18:49fix various errors from compiler warningsNunoSempere35+38-29
2023-12-09 18:18add -Wdouble-promotion warning and fix issues it brings upNunoSempere25+9-7
2023-12-09 18:09report correct warning suppression codeNunoSempere1+1-1
2023-12-09 18:08remove empty lineNunoSempere1+0-1
2023-12-09 18:05tweak header to document UNUSED a bit moreNunoSempere1+1-1
2023-12-09 18:04document UNUSED macroNunoSempere1+7-1
2023-12-09 17:59suppress unused variable warnings with UNUSED macroNunoSempere25+28-15
2023-12-09 17:31turn on (almost) all warningsNunoSempere19+42-38
2023-12-03 18:56clean up roadmapNunoSempere1+33-20
2023-12-03 18:46add referencesNunoSempere15+79221-0
2023-12-03 18:25refactor: struct box => box. Through typedef.NunoSempere19+44-59
2023-12-03 18:15README updates and spell checkingNunoSempere1+63-18
2023-11-30 00:00update README with changesNunoSempere3+45-37
2023-11-29 23:32recover better parallelism function from git history, recompileNunoSempere17+39-9
2023-11-29 23:28add parallelism to samplingNunoSempere17+4-3
2023-11-29 23:21Revert "Revert "Merge branch 'master' into quickselect""NunoSempere40+293-273
2023-11-29 23:21Revert "rebuild"NunoSempere13+0-0
2023-11-29 23:18rebuildNunoSempere13+0-0
2023-11-29 23:17Revert "Merge branch 'master' into quickselect"NunoSempere40+273-293
2023-11-29 23:15Merge branch 'master' into quickselectNunoSempere0+0-0
2023-11-29 23:10reformat & remakeNunoSempere23+55-49
2023-11-29 23:08more refactors; add another exampleNunoSempere18+45-13
2023-11-29 22:51refactor & recompile for function definitionsNunoSempere25+36-29
2023-11-29 22:24reorg, refactor, recompileNunoSempere22+142-147
2023-11-29 21:49move quickselect to squiggle_more.cNunoSempere5+55-80
2023-11-29 21:46run formatter in quickselectNunoSempere2+60-49
2023-11-29 21:45prepare to incorporate quickselect into squiggle_moreNunoSempere2+11-31
2023-11-29 21:34implement quickselect functionNunoSempere2+77-1
2023-11-29 20:04clean scratchpad, start quickselectNunoSempere4+13-27
2023-11-27 16:46tweak parallelism exampleNunoSempere16+27-14
2023-11-27 14:13generalize parallelism to arbitrary num of samples, fix off by one errorNunoSempere20+110-9
2023-11-27 12:45add example of parallelizing a minNunoSempere2+67-0
2023-11-25 21:28start working on using quickselect instead of sortingNunoSempere1+15-16
2023-11-23 15:23note on confidence intervals codeNunoSempere1+5-0
2023-11-19 22:28README tweaksNunoSempere1+11-4
2023-11-19 19:25simplify unneeded imports, use nested functions a bit moreNunoSempere22+5-45
2023-11-19 17:57tweak: add return to print functionNunoSempere1+1-1
2023-11-19 15:50tweak parallize functionNunoSempere3+30-29
2023-11-19 15:50slighgly simplify parallel time to botec exampleNunoSempere13+20-18
2023-11-19 15:40feat: add much faster time to botec example, using parallelismNunoSempere2+33-0
2023-11-19 15:40feat: add parallelism to get 1B lognormal samples in 11s.NunoSempere2+30-0
2023-11-19 14:48feat: finish example reorgNunoSempere1+4-32
2023-11-19 14:47reorg: move all examples using squiggle_more to one makefileNunoSempere45+726-666
2023-11-19 14:32add one sole makefile for examples using core functionalityNunoSempere41+215-963
2023-11-19 13:51reorg: divide examples between those using core and those using extraNunoSempere61+0-0
2023-11-19 00:04makefile tweakNunoSempere2+12-7
2023-11-18 23:54feat: start adding paralellism; recompile.NunoSempere38+372-342
2023-11-18 21:10fix: reorder headers to fix compilation errorNunoSempere23+131-121
2023-11-18 21:07tweak: formatting tweaksNunoSempere5+30-2
2023-11-18 21:00modify makefiles to make reorg work, change READMENunoSempere34+180-125
2023-11-18 20:25split into squiggle and extra.NunoSempere4+356-344
2023-11-18 18:51fix: compilation errors after api driftNunoSempere13+8-5
2023-11-17 20:48add 100 sorted lognormal samplesNunoSempere10+71-0
2023-11-02 21:55normal 95% constant was wrong in 15th decimal numberNunoSempere1+1-1
2023-11-02 21:49add more digits to 90% normal constantNunoSempere2+8-0
2023-10-16 10:39plotting scratchpadNunoSempere7+1000122-0
2023-10-08 22:09add "grug-brained" modifier to README.mdNunoSempere1+1-1
2023-09-27 14:27tweak: remove image.NunoSempere2+0-2
2023-09-27 14:25tweaks before twitter threadNunoSempere8+151-27
2023-09-27 13:10fix constant name 95=>90NunoSempere4+88-9
2023-09-27 12:51reword commentsNunoSempere1+3-6
2023-09-26 19:48fix link typo.NunoSempere1+1-1
2023-09-24 17:03update to-dos in readmeNunoSempere1+5-4
2023-09-23 22:24add more ergonomic & compact code using macros.NunoSempere3+79-0
2023-09-23 22:08move to ci named struct.NunoSempere10+109-20
2023-09-23 21:33add converstion between lognormal form and 90% c.i.NunoSempere4+32-4
2023-09-23 21:19update README, end for the day.NunoSempere1+5-4
2023-09-23 21:15leave out really trivial manipulations, add example, update to-dosNunoSempere6+104-48
2023-09-23 20:53add many more comments, start adding to header file.NunoSempere3+87-24
2023-09-23 19:55use named structs in small algebra system.NunoSempere2+19-13
2023-09-13 17:03savepointNunoSempere8+1-1
2023-08-19 17:22add reference to clang-tidy in READMENunoSempere1+11-1
2023-08-19 17:18add clang-tidy to check for possible errors.NunoSempere3+3-1
2023-08-17 12:30prepare adding squiggle.c to time to botec.NunoSempere6+107-105
2023-08-11 13:27savepointNunoSempere6+0-4
2023-08-11 12:32fix off-by-one errorNunoSempere1+1-1
2023-08-11 12:26continue nuclear recovery modelling.NunoSempere4+60-2
2023-08-11 12:01start adding model about probability of recovery after nuclear war.NunoSempere2+81-0
2023-08-11 12:01add sample_laplaceNunoSempere2+5-0
2023-08-02 17:56small readme clarificationsNunoSempere1+4-0
2023-08-01 12:17cleanup README.md before publishing as blogpostNunoSempere1+11-5
2023-08-01 12:08add shift for normals and scaling for lognormalsNunoSempere2+59-18
2023-08-01 11:07add to-do to readmeNunoSempere1+6-0
2023-08-01 11:05add burning fat exampleNunoSempere3+101-0
2023-07-25 20:26readme tweak IINunoSempere1+1-1
2023-07-25 20:25readme tweakNunoSempere1+2-2
2023-07-24 09:25add MIT licenseNunoSempere2+10-1
2023-07-24 09:22add no guarantees commentNunoSempere1+8-1
2023-07-23 22:44readme tweaksNunoSempere1+2-2
2023-07-23 22:43add links to examples in readmeNunoSempere3+7-23
2023-07-23 22:40fix link v2?NunoSempere1+1-1
2023-07-23 22:40fix readme link?NunoSempere1+1-1
2023-07-23 22:39try adding link in readmeNunoSempere1+1-1
2023-07-23 22:38mark to-dos as done.NunoSempere1+3-4
2023-07-23 22:37add serious model, add template.NunoSempere4+106-35
2023-07-23 22:15formatting passNunoSempere1+13-14
2023-07-23 22:14change the nuclear probability to monthlyNunoSempere2+30-3
2023-07-23 21:54formatting pass nuclear probabilitiesNunoSempere1+25-30
2023-07-23 21:53start adding nuclear probabilitiesNunoSempere6+173-0
2023-07-23 21:29fix readme headingsNunoSempere1+9-2
2023-07-23 19:21fix READMENunoSempere3+13-4
2023-07-23 19:10pontificate about tests with wide lognormalsNunoSempere2+61-1
2023-07-23 17:11add example of getting confidence interval & misc changesNunoSempere15+142-16
2023-07-23 14:30formatting pass.NunoSempere1+10-10
2023-07-23 14:28savepoint, rework tolerance values.NunoSempere3+57-15
2023-07-23 13:44formatting pass.NunoSempere1+248-244
2023-07-23 13:43add tests lognormal, and have them use special tolerances.NunoSempere3+85-31
2023-07-23 12:01tests for larger beta distributionsNunoSempere1+9-0
2023-07-23 12:00add tests for normal & beta.NunoSempere2+152-44
2023-07-23 11:17fix floats.h bug, fix std bug, add tests for std.NunoSempere10+27-12
2023-07-23 11:02replace all floats (32 bits) with doubles (64 bits)NunoSempere17+175-172
2023-07-23 10:53stop using pow when possibleNunoSempere2+5-4
2023-07-23 10:47move to xorshift64. Better precision.NunoSempere17+60-60
2023-07-23 10:44add xorshift64 + various changes.NunoSempere6+71-18
2023-07-23 10:41start adding some testingNunoSempere3+146-0
2023-07-23 09:29tweak independent samples explanationNunoSempere1+4-2
2023-07-23 09:27remove scratchpadNunoSempere6+0-151
2023-07-23 09:27test correlated/uncorrelated example code.NunoSempere7+228-1
2023-07-23 08:10add example 6 to global makefileNunoSempere1+1-0
2023-07-23 08:09README tweaks, free seed in examplesNunoSempere10+9-1
2023-07-23 08:09add beta and gamma example/testsNunoSempere3+103-0
2023-07-23 07:29fix dumb beta sampling bugNunoSempere1+48-44
2023-07-22 20:24add efficient beta distributionNunoSempere1+7-0
2023-07-22 19:49fix performance record, add global makefile.NunoSempere10+13-5
2023-07-22 19:40add gamma distribution & documentation.NunoSempere5+49-3
2023-07-22 17:39add to-do itemNunoSempere1+1-0
2023-07-22 17:36add mean and std for arrays.NunoSempere3+23-5
2023-07-22 17:25formatting pass.NunoSempere1+4-5
2023-07-22 17:24small reorg, comment purpose of functionsNunoSempere1+6-0
2023-07-22 17:21give more expressive names to main functionsNunoSempere12+38-43
2023-07-22 14:20add to-doNunoSempere1+1-0
2023-07-22 14:17add a motivating reason to use C to the readmeNunoSempere1+1-0
2023-07-16 21:33Update readme, small tweaksNunoSempere5+69-12
2023-07-16 20:59format squiggle.cNunoSempere1+11-13
2023-07-16 20:58simplify PROCESS_ERROR macroNunoSempere6+39-39
2023-07-16 20:32rename sampler functions, elaborate on README, etc.NunoSempere9+46-29
2023-07-16 19:52reduce num samples, start READMENunoSempere8+42-19
2023-07-16 19:37formatting pass.NunoSempere4+5-7
2023-07-16 19:32divide simple and complex examples into two different examples.NunoSempere8+270-251
2023-07-16 19:28graduate scratchpad to its own exampleNunoSempere6+308-308
2023-07-16 19:26move some functions from scratchpad => squiggle.c, reorgNunoSempere5+232-233
2023-07-16 19:08reformat squiggle.c, remake examples.NunoSempere6+36-35
2023-07-16 19:00move to squiggle.c file, instead of just squiggle.hNunoSempere8+132-105
2023-07-16 15:59add some thoughts to scratchpad and readmeNunoSempere3+16-6
2023-07-16 15:33scratchpad formatting passNunoSempere1+62-62
2023-07-16 15:33readd inverse cdf for raw floats. rework examples.NunoSempere2+147-57
2023-07-16 15:10reorder scratchpad stuffNunoSempere1+112-206
2023-07-16 15:00rework returning result to define and return at the same timeNunoSempere1+13-16
2023-07-16 14:56rework error as a macroNunoSempere2+100-44
2023-07-16 14:30formatting pass.NunoSempere1+149-144
2023-07-16 12:38add beta distribution samples!!NunoSempere2+51-17
2023-07-16 11:57add dangerous beta sampler.NunoSempere2+143-11
2023-07-16 11:02add comparison with previous sampler.NunoSempere3+36-13
2023-07-16 10:26added better error messages!NunoSempere1+43-38
2023-07-16 10:11mark to-dos as doneNunoSempere1+1-1
2023-07-16 10:09formatting passNunoSempere1+173-169
2023-07-16 10:09add more examples, tweak code a bitNunoSempere2+37-15
2023-07-16 09:08add sampler, add normal cdfNunoSempere1+41-1
2023-07-15 22:59finish inverse!NunoSempere2+81-26
2023-07-15 22:23start adding inverse_cdf to scratchpadNunoSempere1+90-0
2023-07-15 21:26add cdf_sampler to to-doNunoSempere1+5-4
2023-07-15 21:26add scratchpadNunoSempere3+64-0
2023-07-15 21:22savepointNunoSempere7+101-3
2023-06-26 17:44move squiggle_c to its own repositoryNunoSempere8+333-0