Tag Archives: code

Python: Get Indices of List Elements According to Filter Condition

Python (without additional libraries or toolkits like numpy) is still lacking a convenient method to access indices of list elements according to a manually defined filter. We know this functionality from Matlab or numpy. This function makes these toolkits very … Continue reading

Posted in Computer Pragmatics | Tagged , , , | Leave a comment

Refreshing lists via drag/pull gesture in Android

From modern Android apps we know the ability to refresh list contents by pulling a list downwards so far until a refresh animation on the top of the list appears: Actually I found that tutorials how to implement this tend … Continue reading

Posted in Computer Pragmatics | Tagged , , , , | Leave a comment

Matlab Solution for a simple constrained optimization problem

Recently I worked on a homework regarding an easy constrained optimization problem. The problems were stated as follows: I solved it by using a quite simple straight forward matlab code. Due to many comments in it I won’t explain it … Continue reading

Posted in Computer Science | Tagged , , , | Leave a comment

Perceptron Learning Algorithm implemented

Here is a Matlab implementation of a Perceptron learning algorithm I had to do as homework for my Machine Learning lecture recently. It takes a training dataset x=[x1,y1,x2,y2,…] plus according labels z=[z1,z2,…], whereby zi=+1 or -1. The routine yields [w,b], … Continue reading

Posted in Computer Science | Tagged , , | Leave a comment