Skip to content

ncg777/name.ncg777

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,004 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

name.ncg777

Until further notice, this application is a prototype. Some of these apps may be considered experimental or may contain unusual terminology.

First, you should extract the zip file wherever you want.

To run the main menu application that lets one open the apps with graphical interfaces, simply double click on the jar file or run the name.ncg777.cmd (windows) or name.ncg777.sh (linux) script.

Rhythm Network CLI (Interactive)

name.ncg777.maths.numbers.fixed.rhythm.apps.RhythmNetworkApp now supports an interactive session mode for keeping multiple networks loaded in memory and reusing them for fast walk generation.

Start interactive mode with:

--interactive (or -i)

Inside interactive mode, type help.

Main commands:

  • list : show loaded networks (* marks selected)
  • build : build and add a network in memory
  • load : load and add a saved .rnet network
  • select <name> : select active network
  • save : save a loaded network to file
  • unload <name|selected|all> : remove network(s) from memory
  • analyze [navTemp] : run analysis on selected network
  • walk [steps] [navTemp] [seed] : generate one walk
  • matrix : generate N constrained walks as a matrix
  • quit / exit : leave interactive mode

matrix prompts for:

  • walk count N
  • steps
  • navigation temperature τ
  • seed (-1 for random)
  • successive clause (applied to adjacent walk elements via juxtaposition)
  • simultaneous clause (applied across matrix rows via differences)
  • max attempts

Typical session:

  1. build (or load)
  2. list / select <name>
  3. walk for single walk, or matrix for constrained N-walk output
  4. save if needed
  5. unload when done

Enumeration Scripts Documentation

Arguments' names cannot be specified and are just determined positionally.

The int[] type is printed or parsed as space-separated lists of integers (ex: "1 2 3") or JSON array-like strings (ex: "[1, 2, 3]").

bitsequences.sh

  • Class: name.ncg777.maths.enumerations.BitSequenceEnumeration
  • Parameters:
    • n (int): The size of the bit sequences.

bitsets.sh

  • Class: name.ncg777.maths.enumerations.BitSetEnumeration
  • Parameters:
    • n (int): The size of the bit sets.

combinations.sh

  • Class: name.ncg777.maths.enumerations.CombinationEnumeration
  • Parameters:
    • n (int): The size of the set.
    • k (int): The size of the subsets.

compositions.sh

  • Class: name.ncg777.maths.enumerations.CompositionEnumeration
  • Parameters:
    • n (int): The integer to be partitioned.

crossingpartitions.sh

  • Class: name.ncg777.maths.enumerations.CrossingPartitionEnumeration
  • Parameters:
    • n (int): The size of the crossing partitions.

dyckwords.sh

  • Class: name.ncg777.maths.enumerations.DyckWordEnumeration
  • Parameters:
    • nbOfPairs (int): The number of pairs of parentheses.

fixedsetpartitions.sh

  • Class: name.ncg777.maths.enumerations.FixedSetPartitionEnumeration
  • Parameters:
    • n (int) : The size of the set.
    • k (int) : The number of blocks.

kpermutations.sh

  • Class: name.ncg777.maths.enumerations.KPermutationEnumeration
  • Parameters:
    • n (int): The size of the set.
    • k (int): The size of the permutations.

metacompositons.sh

  • Class: name.ncg777.maths.enumerations.MetaCompositionEnumeration
  • Parameters:
    • s (String): The String to metacompose (< and > are reserved characters).
    • [transform] (boolean): transform the string.

metacompositonsoflist.sh

  • Class: name.ncg777.maths.enumerations.MetaCompositionOfListEnumeration
  • Parameters:
    • s (String): Space separated word list to metacompose (<, > and - are reserved characters).
    • [transform] (boolean): transform the string.

mixedradices.sh

  • Class: name.ncg777.maths.enumerations.MixedRadixEnumeration
  • Parameters:
    • base (int[]) : The base for the mixed radix enumeration.
    • [transformation] (int[]) : transformation.apply(coordinates).
    • [factor] (int[]) : Optional factor vector in inner product of elements.
    • [cumulative_products] (boolean): Optionally process factors to cumulative products.

ngoodpaths.sh

  • Class: name.ncg777.maths.enumerations.NGoodPathEnumeration
  • Parameters:
    • n (int) : n

noncrossingpartitions.sh

  • Class: name.ncg777.maths.enumerations.NonCrossingPartitionEnumeration
  • Parameters:
    • n (int): The size of the non-crossing partitions.

partitions.sh

  • Class: name.ncg777.maths.enumerations.PartitionEnumeration
  • Parameters:
    • n (int) : Integer to partition.

permutations.sh

  • Class: name.ncg777.maths.enumerations.PermutationEnumeration
  • Parameters:
    • n (int) : n

regularlanguage.sh

  • Class: name.ncg777.maths.enumerations.RegexEnumeration
  • Parameters:
    • regex (String) : the regular expression to enumerate
    • [stopAt] (int) : the maximum number of elements to enumerate (-1 for no limit)
    • [maxLength] (int) : the maximum length of strings to generate

setpartitions.sh

  • Class: name.ncg777.maths.enumerations.SetPartitionEnumeration
  • Parameters:
    • n (int) : Size of partition.

weakcompositions.sh

  • Class: name.ncg777.maths.enumerations.WeakCompositionEnumeration
  • Parameters:
    • n (int) : Total.
    • k (int) : Number of summands.

weakorders.sh

  • Class: name.ncg777.maths.enumerations.WeakOrdersEnumeration
  • Parameters:
    • n (int) : Size of ordering.

words.sh

  • Class: name.ncg777.maths.enumerations.WordEnumeration
  • Parameters:
    • length (int) : Length of word.
    • size (int) : Size of alphabet.

wordpermutations.sh

  • Class: name.ncg777.maths.enumerations.WordPermutationEnumeration
  • Parameters:
    • rk (int[]) : List of the number of occurrences of each element. The sum of this list will be the length of the output lists.

This application was compiled with Microsoft's build of OpenJDK 21.

About

CLI programs invokable through bash scripts to completely enumerate a variety of mathematical objects & utilities to handle and generate musical data.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages