a mix of Matlab, Java, Perl code.
that's all i write these days.

[Graphs] [Clique tree inference] [What do you say?] [Building a lexicon from emails] [Calling Matlab from Java] [Useful utilities]

if you use my code or find problems with it,
i'd appreciate you sending me an email about it.


Graphs

Standard graph operations implemented in Matlab.


Clique tree inference

Based on one of the clearest papers I've ever read! If you need to implement any kind of inference, this is the paper to read up on:
Huang and Darwiche (1994). Inference in Belief Networks: A Procedural Guide.
The following code implements the steps identified in their paper to build the secondary structure.

Some more code to make things more operational.


What do you say?

This one is kind of cute. I wanted to write a program that generates sentences based on words that I use often. So this is kind of what it does, although you've got to tell it specific the syntax of the sentence you'd want to generate. Take a look at the readme file for more details.

Code needed from the section building a lexicon from emails.


Building a lexicon from emails

Some code for taking a text inbox and formatting it nicely. After that, split the text into separate files according their lexical categories. (Built-in lexicon is limited. Should expand this for real!) Take a look at the readme file for more details.


Calling Matlab from Java

If you ever need to call Matlab from Java, here's the trick. Use the Java class developed by Kamin at MatlabControl.html. If you follow all his instructions, you should be able to get the two to work together. I had more problems because Matlab doesn't understand focus and I needed to be able to get my Java stand-alone working the same way it would with Matlab hooked up to it. So I used Kamin's class to make a MatlabJava server, and made my Java stand-alone a client. That way, I could bypass the whole focus problem because my stand-alone program doesn't need to communicate with Matlab at all. Here is the code.


Useful utilities

Some useful files...