Rand
Math::Random::MT::Auto is a Perl module for auto-seeded Mersenne Twister PRNGs. SYNOPSIS use strict; use warnings; use Math::Random::MT::Auto qw(rand irand shuffle gaussian), /dev/urandom => 256, random_org; # Functional interface my $die_roll = 1 + int(rand(6)); my $coin_flip =...
Platforms: *nix
License: Freeware | Size: 122.88 KB | Download (98): Math::Random::MT::Auto Download |
The script generates an index using the "rand" function, and using that index selects the word from the lexicographically list of words with the specified length. Requirements: - MATLAB 7.8 or higher
Platforms: Windows, Mac, *nix, Matlab, BSD Solaris
License: Freeware | Download (60): RANDWORD Download |
event1=rand(100,1)*1000;%for neuroscientists, this is the timestamp of the node;event1=sort(event1);event2=[event1+10+rand(100,1)*2;event1+10+rand(100,1)*4; event1+10+rand(100,1)*4; event1+100+rand(100,1)*10]; % for neuroscientists, this is your spikes :)[rst,nodewndw]=...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): Raster and PETH Simple Version Download |
Same functionality as the MATLAB rref function, but quicker.>> mex_rref_demo A = rand(200); R1 = rref(A);Elapsed time is 1.435837 seconds. R2 = mex_rref(A);Elapsed time is 0.012729 seconds. max(max(abs(R1 - R2))): 0Speed-up factor: 113
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): mex_rref Download |
With this program you can smooth your data automatically only by selecting the area to be smoothed with 2 clicks. Then INTERP1 is used to smooth. The operation is repeated until you press ENTER.Many other options are available. Like the use of BEZIER curves. Just type>> help click2smoothOr to get...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): lick2smooth.m (Sep 2009) Download |
TOSAVEDWORKSPACE Saves the workspace to a structureThis trivial function saves all of the workspace variables to a structure. The intent of this script is to record the workspace variables before performing an operation on them, so as to keep them available after the operation for comparison....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): ToSavedWorkspace Download |
Functionally the same xlswrite.m (by Scott Hirsch), the only difference is in the implementation.XLSWriteMex is implemented in C++ and compiled into a MATLAB MEX dll. I did this because 'xlswrite.m' does not compile using the MATLAB compiler, so any MATLAB program using 'xlswrite.m' cannot be...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (39): XLSWriteMex Download |
The ultimate currency calculator! Calculate for free between 37 currencies, e.g. EUR, US Dollar, Japanese Yen, British Pounds, Swiss Francs or South African Rand. Including latest exchange rates from the European Central Bank. And the best of all: This software is freeware!
Platforms: Windows
License: Freeware | Size: 1.29 MB | Download (141): EM Eurocalc Download |
The ultimate currency calculator! Calculate for free between 37 currencies, e.g. EUR, US Dollar, Japanese Yen, British Pounds, Swiss Francs or South African Rand. Including latest exchange rates from the European Central Bank. And the best of all: This software is freeware!
Platforms: Windows
License: Freeware | Size: 1.31 KB | Download (143): 5star Currency Calculator Download |
Marauder-ah project is a 2d space fighting game. Marauder-ah is a set of improvements over "marauder", originally written by Shawn Hargreaves in 1994. You control a spaceship with a basic weapon, and your purpose is to kill as many people as you can. Earning money (using piracy or trade)...
Platforms: *nix
License: Freeware | Size: 245.76 KB | Download (92): Marauder-ah Download |
File::LckPwdF is a Perl module to lock and unlock the passwd and shadow files with lckpwdf and ulckpwdf. SYNOPSIS use File::LckPwdF; (lock_passwd(15)) || (die "Cant lock password file:n$! stopped"); # ... do stuff with the passwd file ... (unlock_passwd()) || (die "Cant unlock password...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (103): File::LckPwdF Download |
Proc::Forking is a Perl module that provides a set of tool to fork and daemonize. SYNOPSIS #!/usr/bin/perl use strict; use Proc::Forking; use Data::Dumper; use Time::HiRes qw(usleep); # to allow micro sleep my $f = Proc::Forking->new(); $SIG{ KILL } = $SIG{ TERM } = $SIG{ INT } = sub...
Platforms: *nix
License: Freeware | Size: 11.26 KB | Download (86): Proc::Forking Download |
gjrand is a programmer's library for pseudo-random numbers. gjrand library includes random number generator testing code and is intended for simulation, games, and "Monte-Carlo" algorithms. It produces pseudo-random numbers of the types: uniform integers, uniform reals, normally distributed...
Platforms: Mac
License: Freeware | Size: 122.88 KB | Download (101): Gjrand Download |
Algorithm::Huffman is a Perl extension that implements the Huffman algorithm. SYNOPSIS use Algorithm::Huffman; my %char_counting = map {$_ => int rand(100)} (a .. z, A .. Z); # or better the real counting for your characters # as the huffman algorithm doesnt work good with random data...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (110): Algorithm::Huffman Download |
Libeval provides simple means of evaluating simple arithmetic expressions involving literal numeric values, variables and functions using the addition (+), subtraction (-), multiplication (*), division (/), modulo division (), exponentiation (^), sign (+-), percentag (%) and grouping (())...
Platforms: *nix
License: Freeware | Size: 27.65 KB | Download (95): Libeval Download |
Resource::Loader is a Perl module to load different resources depending. SYNOPSIS use Resource::Loader; $loader = Resource::Loader->new( testing => 0, verbose => 0, cont => 0, resources => [ { name => never, when => sub { 0 }, what => sub { die "this will never be loaded" }, }, {...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (146): Resource::Loader Download |
[COPRIGHT=1] EXAMPLES General #!/usr/bin/perl -w use strict; use DBIx::Simple; # Instant database with DBD::SQLite my $db = DBIx::Simple->connect(dbi:SQLite:dbname=file.dat) or die DBIx::Simple->error; # Connecting to a MySQL database my $db = DBIx::Simple->connect(...
Platforms: *nix
License: Freeware | Size: 15.36 KB | Download (99): DBIx::Simple::Examples Download |
Class::Multimethods::Pure is a Perl module that contains a method-ordered multimethod dispatch. SYNOPSIS use Class::Multimethods::Pure; package A; sub magic { rand() > 0.5 } package B; use base A; package C; use base A; BEGIN { multi foo => (A, A) => sub { "Generic catch-all"; };...
Platforms: *nix
License: Freeware | Size: 15.36 KB | Download (93): Class::Multimethods::Pure Download |
Perl6::Classes project contains first class classes in Perl 5. SYNOPSIS use Perl6::Classes; class Composer { submethod BUILD { print "Giving birth to a new composern" } method compose { print "Writing some music...n" } } class ClassicalComposer is Composer { method compose { print...
Platforms: *nix
License: Freeware | Size: 7.17 KB | Download (92): Perl6::Classes Download |
Statistics::GammaDistribution Perl module represents a gamma distribution. SYNOPSIS use Statistics::GammaDistribution; my $g = Statistics::GammaDistribution->new(); $g->set_order(8.5); print $g->rand(1.0); my @alpha = (0.5,4.5,20.5,6.5,1.5,0.5); my @theta = $g->dirichlet_dist(@alpha);...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (102): Statistics::GammaDistribution Download |