Skip to content

Instantly share code, notes, and snippets.

View martin-mfg's full-sized avatar

martin-mfg

  • Germany
  • 23:05 (UTC +02:00)
View GitHub Profile
@martin-mfg
martin-mfg / geotools_PolygonExtractionProcess_demo.java
Created March 29, 2018 15:18
GeoTools PolygonExtractionProcess demo
public static void main(String[] args) throws Exception
{
final int WIDTH = 5;
final int HEIGHT = 5;
GridCoverageBuilder builder = new GridCoverageBuilder();
builder.setEnvelope(0, 0, WIDTH, HEIGHT); // x_min, y_min, x_max, y_max
/*
According to the documentation, the min and max allowed values for the coordinates are to be specified here,
snow = {
count: 60,
delay: 20,
flutter: 0.2,
wobble: 0.5,
spin: 1.0,
wind: 1.0,
w1: 1,
minSpeed: 0.3,
maxSpeed: 4,
#include <Date.au3>
#include <Array.au3>
#include <Constants.au3>
Local $iUnixTime1 = _GetUnixTime()
MsgBox($MB_SYSTEMMODAL, 'Seconds Since Jan, 1st, 1970 00:00:00 GMT', $iUnixTime1)
Local $sUnixDate1 = _GetDate_fromUnixTime($iUnixTime1)
MsgBox($MB_SYSTEMMODAL, "", $sUnixDate1)
/**
* Updates the edit node
*
* @param {Ext.tree.TreeNode} node
* @param {String} editableText
* @param {String} updatedNode
* @return {void}
*/
updateNodeText: function(node, editableText, updatedNode) {
node.setText(this.editNode.attributes.prefix + updatedNode + this.editNode.attributes.suffix);
@martin-mfg
martin-mfg / adb
Created January 26, 2015 20:17
Hello!
Ich verstehe nicht, warum die Umformung, die du markiert hast, nicht funktioniert. Du schreibst, dass man den Erwartungswert nicht reinziehen kann. Da stimme ich dir zu, aber m.E. ist das auch nicht nötig. Ich vermute, ich habe mir bei der Umformung damals Folgendes gedacht:
Aus Claim 1 wissen wir:
$ \sum\limits_{r=1}^t \left(\sum\limits_{c=1}^n ( \Pi_{r,c} \cdot x_c )^2 \right) $
$ = \sum\limits_{c=1}^n \left(\sum\limits_{r=1}^t ( \Pi_{r,c} \cdot x_c )^2 \right) $
$ = \sum\limits_{c=1}^n \left( x_c^2 \sum\limits_{r=1}^t \Pi_{r,c}^2 \right) $
$ = \sum\limits_{c=1}^n x_c^2 $
zusammengefasst:
$ \sum\limits_{r=1}^t \left(\sum\limits_{c=1}^n ( \Pi_{r,c} \cdot x_c )^2 \right) = \sum\limits_{c=1}^n x_c^2 $