Kategorijas 'sciencespotshot' arhīvs

it just got real

Maijs 15, 2012

First two drawings programmed by myself for master’s thesis with TikZ:

Nothing much but still proud of myself…

Nedēļa: EEG un SEEG

Marts 8, 2012

Neliels ieskats manā darbā:

Pirmais uzmetums darba atvieglošanai:

GUI I

Pēc nelieliem papildinājumiem:

GUI II

es teicu “ieskats” nevis skaidrojums…

TeXworks autocomplete+spellcheck +beamer

Aprīlis 14, 2011

Šodiena TeX pasaulē saistās ar trīs atklājumiem:

  • TeXworks LaTeX editorā var pievienot spellchekerus:

atliek tikai ielikt *.dic un  *.aff (vai arī tikai *.dic -nezinu īsti- ieliku abus) failus šajā direktorijā:

C:\Users\<Username>\.texlive2009\texmf-config\texworks\dictionaries (vismaz uz Win7 man tāda parādījās);

Un pie spellchekers var pārbaudīt kas un kā.

  • Turpat blakus dictionaries ir arī mape “completition” ,kurā iekšā ir auto completion faili- vari pats definēt savus autocomplete cik uziet… :D

Diemžēl tā arī nesāku strādāt ar TeXmaker, kas sākotnēji izskatījās visai potenciāls, bet beigās nepierādīja sevi cīņā ar dažādiem encodingiem un eps bilžu ielikšanu. Varbūt, ka došu tam vēl vienu iespēju kaut kad vēlāk….

  • kā trešais atklājums- TeXworks pieejamas skaistas sagataves (templates) vienkāršiem latex darbiem un prezentācijām…. interesanti, skaisti un vienkārši (new from template un gatavs)…
Rodas kārdinājums pielikt klāt kaut ko no grafiskām podziņām dažādu simbolu ielikšanai un tad vispār vairāk neko īsti nevajag LaTeX darbu veidošanai…

Distribution type doesn’t change by linear transition of data

Jūnijs 1, 2010

Today I understood, that distribution type desn’t change if linear transformation is done to data.

For example, if we take some bunch of data D, that is uniformly distributed in interval [-PI , PI], afterwards we are calculating  other data D1(i)=5-2*D(i);

What will be the distribution? well It’s logical, but it wasn’t obvious for me (I guess I needed to pay more attention in my class of statistics). It will be uniform with interval [5-2*(-PI),5-2*(PI)]=>~[11.2832, -1.2832]=>[-1.2832,11.2832]=>~[-1.3,11.3]. We can se, that distribution stand still. It may be mirrored if coefficient of multiplication is negative (in our case -2).

Example(in MATLAB):

>> D=pi-2*pi*rand(1,50000);
>> hist(D,100);
>> D1=5-2*D;
>> hist(D1,100);
As you can see, our theorethical calcul was confirmed.
My datapoints is in range of [-1.22,11.22].
Nevertheless, in this fast example you can’t see very well (you can see, if you look carefully), that actually distribution is flipped. (left-to-right).
Hope someone found it interesting/useful. I was working, when found out this logical but not obvious little detail.

RegEx and pointers

Aprīlis 7, 2010

It’s nice to understand pointers and Regular Expressions…
I: Understanding file pointers:

Elapsed time is 273.039517 seconds. ->Elapsed time is 0.035172 seconds. (140 MB text file)

II: Understanding RegEx

Elapsed time is {too much- i stopped after 1min} seconds.->Elapsed time is 1.956197 seconds. ->Elapsed time is 0.024666 seconds.(parsing one line of the same file)

Gain on RegEx isn’t very big, but it’s important, because unfortunately, although Regular Expressions is powerful tool in text parsing and analysis, they are slow. And if they are written ambiguously or wrong, it takes s***load lot of time to process.

Fizikas procesu simulācija JAVA

Decembris 8, 2009

Man te nedaudz par simulācijām vajadzēja paskatīties… šim džekam ir Java skills… viennozīmīgi!

http://www.falstad.com/

Btw- tuvojas brīvdienas tas nozīmē, ka tuvojas arī kāds garāks raksts no manas puses… ;)

ne IT/matemātiķi/fiziķi šķir tālāk…

Novembris 23, 2009

pēdējā laika atklājums sinc(PI.f)=sin(PI.f)/(PI.f)

http://en.wikipedia.org/wiki/Sinus_cardinalis

viņu nākas bieži izmantot un redzēt, tādēļ vērts atcerēties..


Follow

Get every new post delivered to your Inbox.