統計とは
データを分析して性質を調べて推測する。
また統計は大きく分けて推測統計と記述統計の二つがある
推測統計
全データからサンプルをとり、サンプルの特性から全データの特性を推測する
記述統計
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replace(text) { | |
return text | |
// 余計な文字の削除 | |
.replace(/(".*" : \{|\{|\}|".*" : |^ )/g, '') | |
// 1つのデータの塊を1列に変換 | |
.replace(/",\r?\n/g, '", ') | |
// 半角スペースをすべて削除 | |
.replace(/ /g, '') | |
// 行間のカンマとその行を削除 | |
.replace(/"\r?\n,/g, '"') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function () { | |
addEvent(); | |
}; | |
// イベント登録 | |
function addEvent() { | |
const button = document.getElementById("gatya-button"); | |
button.addEventListener('click', playGatya, false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>test</title> | |
</head> | |
<body> | |
<form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using VRM; | |
public class InputListener : MonoBehaviour { | |
public GameObject LeftHand; | |
public GameObject Camera; | |
public GameObject Character; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using VRM; | |
public class InputListener : MonoBehaviour { | |
public GameObject LeftHand; | |
public GameObject Camera; | |
public GameObject Character; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable EOL conversions by default | |
* -text | |
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
Assets/AssetStoreTools* | |
# Visual Studio cache directory | |
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AVFoundation | |
import UIKit | |
// レイヤーをAVPlayerLayerにする為のラッパークラス. | |
class AVPlayerView : UIView { | |
// UIViewのサブクラスを作りlayerClassメソッドをオーバーライドしてAVPlayerLayerに差し替える | |
override class var layerClass: AnyClass { | |
return AVPlayerLayer.self | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TimelineTableViewCell: UITableViewCell { | |
@IBOutlet weak var userName: UILabel! | |
@IBOutlet weak var animalImage: UIImageView! | |
@IBOutlet weak var animalMovie: AVPlayerView? | |
override func awakeFromNib() { | |
super.awakeFromNib() | |
self.userName.adjustsFontSizeToFitWidth = true | |
} | |
NewerOlder