User:KaKiLa: Difference between revisions

From Octave
Jump to navigation Jump to search
Line 32: Line 32:


= TODO list =
= TODO list =
* Write description of packages [[Geometry package]],[[Mechanics package]],[[Robotics package]].
== Geometry package ==
* Start the API for [https://code.cor-lab.de/projects/rsb RSB].
* Extend tutorial [[Geometry package]]
=== make output format a valid input format ===
 
== Non-negative matrix factorization ==
* Add nmf_bpas and nmf-pg  to linear-algebra <span style="color: green;">✔</span>
 
* Get [http://cogsys.imm.dtu.dk/toolbox/nmf/index.html nmf_toolbox] from DTU under free license. <span style="color: green;">✔</span>
** Add it to linear-algebra and create nnmf.m compatible with MATLAB calling all the methods.
 
== GPML ==
* Asked for a GPLv3 version of [http://www.gaussianprocess.org/gpml/code/matlab/doc/index.html GPML]. They answer but license is FreeBSD. A new version is comming out in June 2012, so I will wait to start the port.<span style="color: green;">✔</span>
* Create [https://bitbucket.org/KaKiLa/gpml repository] to keep scripts to package it for OF. <span style="color: green;">✔</span>
 
== make output format a valid input format ==
An output format that prints valid input commands, so one can copy and re-execute the code.
An output format that prints valid input commands, so one can copy and re-execute the code.
From IRC
From IRC
Line 42: Line 53:
(04:57:31 PM) jwe: pr-output.cc and pr_as_read_syntax
(04:57:31 PM) jwe: pr-output.cc and pr_as_read_syntax


=== extend sub2ind and ind2sub ===
== extend sub2ind and ind2sub ==
We are extending sub2ind and ind2sub to work with triangular matrices. Currently private functions of {{Forge|mechanics}}.
We are extending sub2ind and ind2sub to work with triangular matrices. Currently private functions of {{Forge|mechanics}}.
A string argument triggers the behavior. The string argument can be "triu" or "tril". After this str argument we accept an extra scalar value indicating that the triangular matrix is off diagonal (as in tril and triu).
A string argument triggers the behavior. The string argument can be "triu" or "tril". After this str argument we accept an extra scalar value indicating that the triangular matrix is off diagonal (as in tril and triu).
Line 50: Line 61:
# If the argument after the str argument is a scalar, it indicates off diagonal triangular matrix (we do not have algo for that yet, though).
# If the argument after the str argument is a scalar, it indicates off diagonal triangular matrix (we do not have algo for that yet, though).


=== updating pkg.m ===
== updating pkg.m ==
Commands used with pkg
Commands used with pkg


     pkg install image-*
     pkg install image-*
-
     pkg load image
     pkg load image
-
     pkg unload image
     pkg unload image
-
     pkg uninstall image
     pkg uninstall image
-
     pkg install -forge image
     pkg install -forge image
-
     pkg install -verbose -forge -nodeps signal
     pkg install -verbose -forge -nodeps signal
     pkg install struct-old.tar.gz
     pkg install struct-old.tar.gz
-
     pkg update struct
     pkg update struct
-
     pkg update
     pkg update
-
     pkg load all
     pkg load all
-
     pkg unload all
     pkg unload all
-
     pkg list
     pkg list
     installed_packages = pkg ("list")
     installed_packages = pkg ("list")
-
     [user_packages, system_packages] = pkg ("list")
     [user_packages, system_packages] = pkg ("list")
-   
     oct_forge_pkgs = pkg ("list", "-forge")
     oct_forge_pkgs = pkg ("list", "-forge")
-   
     pkg describe image
     pkg describe image
-
     pkg describe -verbose image  
     pkg describe -verbose image  
-
     pkg describe -verbose all  
     pkg describe -verbose all  
-   
     desc = pkg ("describe", "signal", "image")
     desc = pkg ("describe", "signal", "image")
-   
     [desc, flag] = pkg ("describe", "signal", "image")
     [desc, flag] = pkg ("describe", "signal", "image")
-   
     pkg prefix
     pkg prefix
-   
     pkg prefix /tmp
     pkg prefix /tmp
-
     pfx = pkg ("prefix")
     pfx = pkg ("prefix")
-
     pkg prefix /tmp /tmp
     pkg prefix /tmp /tmp
-
     pfx = pkg ("prefix")
     pfx = pkg ("prefix")
-
     pkg build -verbose /tmp image-*
     pkg build -verbose /tmp image-*
-
     pkg rebuild signal
     pkg rebuild signal
-
     pkg local_db /tmp/.octave_packages.db
     pkg local_db /tmp/.octave_packages.db
-
     pkg local_db
     pkg local_db
-
     pkg global_db /tmp/.octave_packages.db
     pkg global_db /tmp/.octave_packages.db
-
     pkg global_db
     pkg global_db
-
     pkg whereis rgbplot
     pkg whereis rgbplot
-
     pkg whereis -forge rgbplot
     pkg whereis -forge rgbplot
-
     pkg install -url "http://users.elis.ugent.be/~jcarbaja/DRD/DRD_files/" drd-1.1.0.tar.gz
     pkg install -url "http://users.elis.ugent.be/~jcarbaja/DRD/DRD_files/" drd-1.1.0.tar.gz
-


== Octave - Forge ==
 
== real2rgb ==
Porting the package.
May be good to port [http://www.mathworks.com/matlabcentral/fileexchange/16233-sc-powerful-image-rendering SC] as well
 
 
== Old projects ==
* Write description of packages [[Mechanics package]],[[Robotics package]].
* Start the API for [https://code.cor-lab.de/projects/rsb RSB].
 
=== Quaternion package ===
* quaternion mpower.m
* quaternion mpower.m


=== Non-negative matrix factorization ===
* Add nmf_bpas and nmf-pg  to linear-algebra <span style="color: green;">✔</span>
* Get [http://cogsys.imm.dtu.dk/toolbox/nmf/index.html nmf_toolbox] from DTU under free license. <span style="color: green;">✔</span>
** Add it to linear-algebra and create nnmf.m compatible with MATLAB calling all the methods.
=== Biomechanics ===
=== Biomechanics ===
* <del> Ask [https://sites.google.com/site/systemsneurosciencegroup/people/stewart-heitmann Stewart Heitmann] to release under GPLv3.</del>
* <del> Ask [https://sites.google.com/site/systemsneurosciencegroup/people/stewart-heitmann Stewart Heitmann] to release under GPLv3.</del>
Line 152: Line 134:
* Ask [http://www.cs.washington.edu/homes/todorov/software.html Emanuel Todorov] to release under GPLv3 or equivalent.
* Ask [http://www.cs.washington.edu/homes/todorov/software.html Emanuel Todorov] to release under GPLv3 or equivalent.
* [http://ai.stanford.edu/~mitul/mpk/ MPK] apparently is non-Free. Discussing.
* [http://ai.stanford.edu/~mitul/mpk/ MPK] apparently is non-Free. Discussing.
=== Matgeom ===
[[Geometry_package]]
Merging Phillip's work:
=== Gaussian Processes ===
* Asked for a GPLv3 version of [http://www.gaussianprocess.org/gpml/code/matlab/doc/index.html GPML]. They answer but license is FreeBSD. A new version is comming out in June 2012, so I will wait to start the port.
=== real2rgb ===
Porting the package.
May be good to port [http://www.mathworks.com/matlabcentral/fileexchange/16233-sc-powerful-image-rendering SC] as well

Revision as of 07:16, 30 November 2016

Personal Data

Juan Pablo Carbajal

Useful make options

  1.  DOC_TARGETS= 
    avoids building the PDF but still builds function helps.
  2.  --disable-atomic-refcount
    improves performance when building CLI only.

getting help

  1. know the function --> help function_name or help function_name.
  2. Know what to do but not the function name --> lookfor what_to_do.
  3. Can't remember the fullname of a function (or have a guess) --> partial_name_of_function then press <TAB-key> twice
  4. Did it once but can't remeber --> <Ctrl>+<R> to search the history.

Sketchpad

test syntax highlight

Code: Loading the file as polygon compatible with geometry package
function y = deserializeInt (data)

  y = bitpack (
        cell2mat(
               arrayfun(
                        @(x)bitget(x,1:8), data,
                        "UniformOutput", false
                       )
                )', "uint16");

  y = double (y);

endfunction

TODO list

Geometry package

Non-negative matrix factorization

  • Add nmf_bpas and nmf-pg to linear-algebra
  • Get nmf_toolbox from DTU under free license.
    • Add it to linear-algebra and create nnmf.m compatible with MATLAB calling all the methods.

GPML

  • Asked for a GPLv3 version of GPML. They answer but license is FreeBSD. A new version is comming out in June 2012, so I will wait to start the port.
  • Create repository to keep scripts to package it for OF.

make output format a valid input format

An output format that prints valid input commands, so one can copy and re-execute the code. From IRC

(04:57:05 PM) jwe: It might not be too hard to implement what you want. There is a flag in the pr-output functions for pr_as_read_format and many (but probably not all) of the types that are printed there do something with that. And it is not hooked in to the format function, so you can't enable it.

(04:57:31 PM) jwe: pr-output.cc and pr_as_read_syntax

extend sub2ind and ind2sub

We are extending sub2ind and ind2sub to work with triangular matrices. Currently private functions of mechanics. A string argument triggers the behavior. The string argument can be "triu" or "tril". After this str argument we accept an extra scalar value indicating that the triangular matrix is off diagonal (as in tril and triu). So, the first modification to the C++ code will be

  1. Check if any of the argument is a str.
  2. Check what kind of triangular matrix (up or low).
  3. If the argument after the str argument is a scalar, it indicates off diagonal triangular matrix (we do not have algo for that yet, though).

updating pkg.m

Commands used with pkg

   pkg install image-*
   pkg load image
   pkg unload image
   pkg uninstall image
   pkg install -forge image
   pkg install -verbose -forge -nodeps signal
   pkg install struct-old.tar.gz
   pkg update struct
   pkg update
   pkg load all
   pkg unload all
   pkg list
   installed_packages = pkg ("list")
   [user_packages, system_packages] = pkg ("list")
   oct_forge_pkgs = pkg ("list", "-forge")
   pkg describe image
   pkg describe -verbose image 
   pkg describe -verbose all 
   desc = pkg ("describe", "signal", "image")
   [desc, flag] = pkg ("describe", "signal", "image")
   pkg prefix
   pkg prefix /tmp
   pfx = pkg ("prefix")
   pkg prefix /tmp /tmp
   pfx = pkg ("prefix")
   pkg build -verbose /tmp image-*
   pkg rebuild signal
   pkg local_db /tmp/.octave_packages.db
   pkg local_db
   pkg global_db /tmp/.octave_packages.db
   pkg global_db
   pkg whereis rgbplot
   pkg whereis -forge rgbplot
   pkg install -url "http://users.elis.ugent.be/~jcarbaja/DRD/DRD_files/" drd-1.1.0.tar.gz


real2rgb

Porting the package. May be good to port SC as well


Old projects

Quaternion package

  • quaternion mpower.m

Biomechanics

  • Ask Stewart Heitmann to release under GPLv3.
  • Ask Andrea d'Avella to release under GPLv3 or equivalent. Waiting for answer. KaKiLa 03:54, 9 March 2012 (PST)

Contents

  • Muscle models
    • Hill model.
    • Voight model.
  • Locomotion
    • SLIP model, multiple generalized variables.
  • Reaching
    • Tendulum, tendon driven pendulum.

Robotics Toolbox

Robotics_package