(alle)
cict01
Mehrfachauswahl
import math | |
from typing import Union | |
def map_to_interval(in_val: Union[float, int], in_min: Union[float, int], in_max: Union[float, int], | |
out_min: Union[float, int], out_max: Union[float, int]) -> float: | |
# mappt einen Wert aus einem gegebenen Intervall auf ein anderes Intervall | |
# z.B. Wert 0.5 im Intervall [0, 1] entspräche im Intervall [0, 10] -> 5 | |
# z.B. Wert 0.5 im Intervall [0, 1] entspräche im Intervall [10, 20] -> 15 | |
from sympy import Interval, FiniteSet, Union, ProductSet | |
# als ProductSet aus Intervals | |
x1 = Interval(1, 2) | |
y1 = Interval(1, 2) | |
z1 = Interval(1, 2) | |
x2 = Interval(1, 1) | |
y2 = Interval(1, 1) | |
z2 = Interval(1, 1) |
# twitter_data_003 | |
library(tidyverse) | |
library(dplyr) | |
library(quanteda) | |
library(quanteda.textplots) | |
# load datasets |
# twitter_data_004 | |
# Time Series Data & Visualization | |
library(tidyverse) | |
library(dplyr) | |
library(TSstudio) | |
# load datasets | |
df_tweets_subset <- readRDS("data/df_tweets_subset_htags.Rda") |
# Intro 5 | |
# Mastodon API (II) | |
library(tidyverse) | |
library(rtoot) | |
my_instance <- "mastodon.social" | |
auth_setup(instance = my_instance, type = "user") | |
options("rtoot_token" = file.path(tools::R_user_dir("rtoot", "config"), "rtoot_token.rds")) |
mkdir C:\Users\NAME\project\data\kk4 | |
cd C:\Users\NAME\project\data\kk4 | |
net from http://www.stata-press.com/data/kk4/ | |
net install data | |
net get data | |
mkdir kksoep | |
cd kksoep | |
net get kksoep | |
cd .. |
* erstellt von VORNAME NACHNAME | |
* zuletzt bearbeitet am 06.08.2019 | |
version 15.1 // Stata-Version prüfen | |
pause off // "pause" ausstellen | |
set more off // "more" ausstellen | |
cap log close // logfile schließen, falls noch eines geöffnet ist |